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

Re: Thread crashing problem


  • Subject: Re: Thread crashing problem
  • From: Robert Marini <email@hidden>
  • Date: Mon, 22 Dec 2008 10:18:01 -0500

If you can target Leopard and above, @synchronized is probably a better route to go though as scott said, the object to be synchronized around would need to be checked by all methods using it (in your case this would be the instance of the NSLock).

-rob.

On Dec 22, 2008, at 10:12 AM, Scott Ribe wrote:

The lock (the same one) has to be used by all the methods to coordinate
access. Taking a lock in updateDirectoriesInThread doesn't magically make
addDirectory and removeDirectory wait for the lock.


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


_______________________________________________

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

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

_______________________________________________

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: Thread crashing problem (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Thread crashing problem
  • Next by Date: Re: Thread crashing problem
  • Previous by thread: Re: Thread crashing problem
  • Next by thread: Re: Thread crashing problem
  • Index(es):
    • Date
    • Thread