iphone Programming Glossary: processgo
when is it safe to release an NSThread? http://stackoverflow.com/questions/1151637/when-is-it-safe-to-release-an-nsthread my application exits while NSThread currentThread isCancelled NSAutoreleasePool middlePool NSAutoreleasePool alloc if processGo inner loop this loop runs typically for a few seconds while processGo NSThread currentThread isCancelled NSAutoreleasePool.. middlePool NSAutoreleasePool alloc if processGo inner loop this loop runs typically for a few seconds while processGo NSThread currentThread isCancelled NSAutoreleasePool innerPool NSAutoreleasePool alloc init within inner loop this takes.. processCondition unlock outerPool release the combination of an inner while loop NSCondition processCondition toggling processGo between YES and NO allows me to stop and start the inner while loop without cancelling the thread. if processGo YES execution..
|