来自工作线程的"PostMessage"将消息发送到主GUI线程 [英] “PostMessage” from a working thread to send a message to the main GUI thread

查看:222
本文介绍了来自工作线程的"PostMessage"将消息发送到主GUI线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

....
我已经创建了一个线程,现在我想从该线程向主GUI线程发送消息(以执行特定事件),以便该GUI线程可以执行我的消息.任何人都可以告诉我如何在iphone中执行此操作(目标C)

....
I have created a thread and now i want to send message(to do a particular event) from the thread to the main GUI thread, so that th GUI thread can execute my message.can any one tell me how to do this in iphone(Objective C)

推荐答案

如果您使用的是Cocoa,请查看 [
If you are using Cocoa then have a look at "Safe, threaded design and inter-thread communication"[^].


这篇关于来自工作线程的"PostMessage"将消息发送到主GUI线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆