• 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
Terminating NSThreads from an external thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Terminating NSThreads from an external thread


  • Subject: Terminating NSThreads from an external thread
  • From: John Timmer <email@hidden>
  • Date: Sat, 26 Apr 2003 14:03:37 -0400

Greetings -

I'm interested in trying to perform a network task with a specific timeout.
In reading over the NSThread documentation, it seems like you can only kill
off a thread from within that thread. If the task were a loop, it's easy to
envision checking an external variable for whether to exit, but it's harder
to figure out how to do this if the thread is waiting on a stalled network
connection.

So, my question is whether there is a way to have a separate thread signal
to a thread that may be bogged down that it's time to give up? Just a few
pointers to the right documentation should do, as I'm reasonably good at
R-ing TFM.

Cheers,

John
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Multithreading with DO and Notifications (From: Drew McCormack <email@hidden>)

  • Prev by Date: Re: which version of unicode is os x currently using?
  • Next by Date: Re: Multithreading with DO and Notifications
  • Previous by thread: Re: Multithreading with DO and Notifications
  • Next by thread: Re: Multithreading with DO and Notifications
  • Index(es):
    • Date
    • Thread