Cocoa and cooperative threads
Cocoa and cooperative threads
- Subject: Cocoa and cooperative threads
- From: Martin Hairer <email@hidden>
- Date: Tue, 26 Jul 2005 23:35:01 +0100
Hi, I just started the process of porting my app from Carbon to
Cocoa. For the moment, things look rather fine, I have now a
working Cocoa application with mainly Carbon windows. Now
one peculiarity of my application is that it relies very much on
cooperative threads. I do quite a lot of GUI stuff from these threads
which in principle should be quite safe.
It seems that Cocoa however doesn't like that at all... It seems
to be especially confused if one allocates an object in one thread
and then releases it in another one. Is there some workaround for
this (like having only one autorelease pool shared among all of the
cooperative threads, if this is at all possible) or will I just have to
write the Cocoa bits in such a way that they only ever live in the
"true"
main thread? Sorry if this is a dumb question, I just started to dig
into
Cocoa... Thanks,
Martin
HairerSoft
http://www.hairersoft.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden