Re: Pausing and terminating a thread
Re: Pausing and terminating a thread
- Subject: Re: Pausing and terminating a thread
- From: Hamish Allan <email@hidden>
- Date: Tue, 30 Aug 2005 18:16:58 +0100
On Mon, 29 Aug 2005 23:23:08 -0700, Steve Weller <email@hidden>
wrote:
So I can use a lock to implement the pause -- neat. Just acquire the
lock in my main thread and that will stop the worker thread from
continuing until I release it.
However this still requires that my worker thread poll. And doesn't
take care of quitting the worker thread. Any better way?
It's not clear what you would like to be able to do. Do you mean you
want to be able to pause and terminate your worker thread without
performing any tests within its main loop?
Is there not communication between worker and GUI anyway, to inform
of progress?
Best wishes,
Hamish
_______________________________________________
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