Re: pthreads and CF runloops (possibly slightly OT)
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 12 nov 2005, at 16.20, Hado Hein wrote: Although off-topic for this list: j o a r _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com I want to jump in here. One thing (apparently more in Aqua ;-) is that I have in mind only to draw from the main thread (aka AppRunLoop). Do I understand the above right in the way that a secondary thread could append some source to the main loop and let the main loop then execute some drawing (which it is not allowed in its own thread). You are allowed to draw from secondary threads if you just follow some simple rules: <http://developer.apple.com/documentation/Cocoa/Conceptual/ Multithreading/articles/CocoaSafety.html> That said, you can of course also do what you suggest, and leave all the drawing to the main thread. smime.p7s
participants (1)
-
j o a r