• 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: Synchronizing Thread Execution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synchronizing Thread Execution


  • Subject: Re: Synchronizing Thread Execution
  • From: Scott Ribe <email@hidden>
  • Date: Mon, 04 Dec 2006 11:18:20 -0700
  • Thread-topic: Synchronizing Thread Execution

> How then to solve this? Would I be better off with a condition lock?
> And how would I implement that?

@synchronized(someUniqueObject)

Allocate a single instance of something (anything, [[NSObject alloc] init]
would do) at startup in a global variable and synchronize on that.


--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

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

  • Follow-Ups:
    • Re: Synchronizing Thread Execution
      • From: Antonio Nunes <email@hidden>
References: 
 >Re: Synchronizing Thread Execution (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Re: CFMessagePort problems
  • Next by Date: Re: Creating an NSTypeSetter Subclass
  • Previous by thread: Re: Synchronizing Thread Execution
  • Next by thread: Re: Synchronizing Thread Execution
  • Index(es):
    • Date
    • Thread