• 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: -[NSThread start] blocks ?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSThread start] blocks ?!?


  • Subject: Re: -[NSThread start] blocks ?!?
  • From: Ken Thomases <email@hidden>
  • Date: Sun, 27 Sep 2015 23:54:16 -0500

> On Sep 27, 2015, at 8:49 PM, Jerry Krinock <email@hidden> wrote:
>
> My point is that if we can’t at least rely on -[NSThread start] returning before the secondary starts, there is no way for a seconary thread to call back to the main thread without possibility of deadlock.

No, this isn't true.  The only requirement is that -[NSThread start] is _free_ to return _once_ the new thread has started.  That doesn't mean it _will have_ returned.  There's no guarantee that -start will return before the new thread starts and there never has been.  In fact, it would be very difficult to implement such a guarantee.

Now, obviously, you're encountering buggy behavior where -[NSThread start] is stuck for some reason.  It's not yet clear whether the bug is in your code or in Cocoa.

-Ken


_______________________________________________

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: 
 >Re: -[NSThread start] blocks ?!? (From: John Daniel <email@hidden>)
 >Re: -[NSThread start] blocks ?!? (From: Jerry Krinock <email@hidden>)
 >Re: -[NSThread start] blocks ?!? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: -[NSThread start] blocks ?!?
  • Next by Date: Re: How to get remote metadata
  • Previous by thread: Re: -[NSThread start] blocks ?!?
  • Next by thread: Re: -[NSThread start] blocks ?!?
  • Index(es):
    • Date
    • Thread