• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Very strange Xpc magic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Very strange Xpc magic (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Very strange Xpc magic (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Very strange Xpc magic (From: Charles Srstka <email@hidden>)
 >Re: Very strange Xpc magic (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Very strange Xpc magic (From: Charles Srstka <email@hidden>)
 >Re: Very strange Xpc magic (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Very strange Xpc magic
  • Next by Date: Re: Progress for archiving/dearchiving
  • Previous by thread: Re: Very strange Xpc magic
  • Next by thread: UIView Center does not seem to change with orientation change
  • Index(es):
    • Date
    • Thread