Re: NSCondition
Sandor Szatmari
Regarding the call to -isCancelled in the consumer thread... presumably you will have a handle to this thread somewhere and want to -cancel it gracefully prior to termination... Or cancel it and restart it... For whatever your reason may be... checking the -isCanceled state gives you the change to break out of the threads loop... So instead of -detachThread.... you could use -initWithSelector.... and hold onto this handle to your thread... then you can either make it directly available as a property or define an interface on you class to allow outside interaction... Sandor
On Mon, Mar 12, 2018 at 7:06 AM, Dave <dave@...> wrote: Hi,
|
|