Re: simple NSRunLoop question
Re: simple NSRunLoop question
- Subject: Re: simple NSRunLoop question
- From: Mike Abdullah <email@hidden>
- Date: Thu, 3 Dec 2009 02:07:48 +0000
On 3 Dec 2009, at 01:59, John Michael Zorko wrote:
>
> Hello, all ...
>
> i've done some googling, and read documentation for NSRunLoop and NSThread, but there's something I don't know: How do I get the run loop of a specific NSThread? Something like:
>
> [streamerThread getCurrentRunLoop];
>
> ??
Simple answer is you don't. Runloops aren't thread safe, they're only designed to be access from the thread they "belong to". So you can easily get the runloop of the current thread (+currentRunLoop) but not of an arbitrary thread._______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden