• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pausing and terminating a thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Pausing and terminating a thread
      • From: Ben Haller <email@hidden>
  • Prev by Date: Re: NSScrollView: iPhoto/iTunes border type?
  • Next by Date: Unarchive Data from URL (was Can't Convert Image...)
  • Previous by thread: Re: Pausing and terminating a thread
  • Next by thread: Re: Pausing and terminating a thread
  • Index(es):
    • Date
    • Thread