(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSConditionLock 

Inherits From:	NSObject 

Conforms To:	NSCoding
NSLocking
NSObject 

Declared In:	foundation/NSLock.h 

Initializing an NSConditionLock

- (id)initWithCondition:(int)condition	Initializes a newly created NSConditionLock and sets its condition to condition.

Returning the Condition

- (int)condition	Returns the receiver's condition, the state that must be acheived before a conditional lock can be acquired or released.

Acquiring and Releasing a Lock

- (void)lockWhenCondition:(int)condition	Attempts to acquire a lock when condition is met.  Blocks until condition is met.
- (void)unlockWithCondition:(int)condition	Releases the lock and sets lock state to condition.
- (BOOL)tryLock	Attempts to acquire a lock.  Returns YES if successful and NO otherwise.
- (BOOL)tryLockWhenCondition:(int)condition	Attempts to acquire a lock when condition is met.  Returns YES if successful and NO otherwise.