Re: Threads and run loops
Re: Threads and run loops
- Subject: Re: Threads and run loops
- From: Oleg Krupnov <email@hidden>
- Date: Fri, 5 Nov 2010 10:12:45 +0200
Sure! I should make myself clear, when I said "the other thread enters
its run loop", I meant that the thread executes some my code in its
"main" that does some setup and enters the run loop. I didn't mean it
happens automatically. But the questions remain.
On Fri, Nov 5, 2010 at 10:08 AM, Vincent Habchi <email@hidden> wrote:
> Le 5 nov. 2010 à 08:29, Oleg Krupnov a écrit :
>
>> Hi,
>>
>> I've got a couple of questions:
>>
>> 1. What happens if I send a message via -performSelector:onThread:
>> from one thread to another, before the other thread has time to enter
>> its run loop? Is the message going to be lost?
>>
>> 2. Is there a way to wait and make sure the thread has entered its run
>> loop? How do I check if a thread has entered its run loop?
>
> AFAIK, you are responsible for setting up and launching threads run loop, so that should not be an issue.
> Vincent
_______________________________________________
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