Re: Yielding an NSThread-started thread
Re: Yielding an NSThread-started thread
- Subject: Re: Yielding an NSThread-started thread
- From: "Gurmit Teotia" <email@hidden>
- Date: Tue, 21 Nov 2006 19:06:45 +0530
I don't see any way to do it from NSThread. If you need more control
on thread then better go for POSIX thread and just create a fake
thread from NSThread and let it exit normally so Cocoa can prepare it
self for multithreaded environment.
Please refer to Multithreading document provided by Apple as well.
Gurmit
On 11/21/06, Philip Q <email@hidden> wrote:
Is there a recommended/good way to yield a thread started using
NSThread while it waits for another?
pthread has pthread_yield(), libc has sched_yield(), Thread Manager
has YieldToAnyThread(), Multiprocessing Services has MPYield() -- but
I don't see a Cocoa one, and I don't know what the unexpected
consequences might be of calling one from another library?
Thanks,
Phil
_______________________________________________
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
_______________________________________________
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