• 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: Exiting non-POSIX threads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exiting non-POSIX threads?


  • Subject: Re: Exiting non-POSIX threads?
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 01 Aug 2013 09:35:27 -0700

On Thu, Aug 1, 2013, at 07:55 AM, Richard Somers wrote:

> - (void)submitWorkToBeDone
> {
>     dispatch_async(_queue, ^{
>         for ( ... ) {

NEVER do this.

You don't own the thread. GCD does.

--Kyle Sluder
_______________________________________________

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: Exiting non-POSIX threads? (From: Richard Somers <email@hidden>)

  • Prev by Date: IOS force hidden tab to adjust subviews after rotation
  • Next by Date: Re: IOS force hidden tab to adjust subviews after rotation
  • Previous by thread: Re: Exiting non-POSIX threads?
  • Next by thread: Re: Exiting non-POSIX threads?
  • Index(es):
    • Date
    • Thread