Terminating NSThreads from an external thread
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.