Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Headless Cocoa/Java app - autorelease



On May 2, 2005, at 11:40 AM, String Larson wrote:

Now, JBoss has worker threads that process incoming requests, AND I spawn my own threads to handle the actual image processing. Do the sub-threads need AutoreleasePools as well ?

Correct, any thread will need its own autorelease pool.
Cocoa doesn't have the concept of "sub-threads" per se (I don't know about Java here). Each thread is its own entity in Cocoa, and will need a unique pool.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Headless Cocoa/Java app - autorelease (From: String Larson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.