How would one share a lock? Should I make it a property of the class? And then what? According to the NSLock documentation, multiple calls to tryLock are a no no, so how does one determine the current state of a lock? I didn't see any methods like "isLocked"


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
scott_r...@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to