NSAutoReleasePools and MPThreads
NSAutoReleasePools and MPThreads
- Subject: NSAutoReleasePools and MPThreads
- From: Michael Rondinelli <email@hidden>
- Date: Wed, 2 Oct 2002 13:53:05 -0400
Greetings,
I have an application that includes a private framework written in C
which uses Carbon MPThreads. There are a few callbacks into the
application from these MPThreads.
Reading the Cocoa docs on autorelease pools, there are ominous warnings
about not using Cocoa at all from pthreads because there is no storage
for the autorelease pool stack. It appears however that I can safely
allocate an autorelease pool in the MP callback and make some Cocoa
calls without a problem using 10.2.
Is this something that will work under 10.1 or above, or can I only
expect this behavior under Jaguar? Or for that matter, am I just lucky
to have this arrangement working at all?
Thanks,
Michael
--
Michael Rondinelli
V.P. of Technology
EyeSee360, Inc.
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.