Re: Very strange Xpc magic
Re: Very strange Xpc magic
- Subject: Re: Very strange Xpc magic
- From: Charles Srstka <email@hidden>
- Date: Mon, 16 Sep 2013 11:46:13 -0500
On Sep 16, 2013, at 11:33 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
> I also did some more testing. The magic does not lie in the NSLog() but in the elapsed time.
>
> On my machine the sending of a message to remoteObjectProxy must NOT be done earlier than ca. 180 μsec after [NSXPCConnection resume].
>
> Without anything in between these are only 50 μsec apart. Not enough.
>
> NSLog() adds a sufficient delay of almost 250 μsec.
> But usleep(130) also does the trick.
Yep, sounds like a race condition for sure.
Charles
_______________________________________________
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