• 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: Yielding an NSThread-started thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yielding an NSThread-started thread


  • Subject: Re: Yielding an NSThread-started thread
  • From: Chris Suter <email@hidden>
  • Date: Wed, 22 Nov 2006 14:07:49 +1100

Does that mean that [myLock lockWhenCondition:0] yields if the lock is
not available (while it's checking)?

Yes.

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ Classes/NSConditionLock_Class/Reference/Reference.html#//apple_ref/ occ/instm/NSConditionLock/lockWhenCondition:

The term "blocking" generally means the thread will consume no CPU resource whilst it waits.

- Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________

Cocoa-dev mailing list      (email@hidden)

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: 
 >Yielding an NSThread-started thread (From: "Philip Q" <email@hidden>)
 >Re: Yielding an NSThread-started thread (From: Alastair Houghton <email@hidden>)
 >Re: Re: Yielding an NSThread-started thread (From: "Philip Q" <email@hidden>)
 >Re: Yielding an NSThread-started thread (From: Alastair Houghton <email@hidden>)
 >Re: Re: Yielding an NSThread-started thread (From: "Philip Q" <email@hidden>)

  • Prev by Date: Re: Re: Yielding an NSThread-started thread
  • Next by Date: Re: External kill of an NSThread?
  • Previous by thread: Re: Re: Yielding an NSThread-started thread
  • Next by thread: Problem saving an existing document (as a package) to a WebDAV folder
  • Index(es):
    • Date
    • Thread