Contents

NSConditionLock

A lock that can be associated with specific, user-defined conditions.

Declaration

class NSConditionLock

Overview

Using an NSConditionLock object, you can ensure that a thread can acquire a lock only if a certain condition is met. Once it has acquired the lock and executed the critical section of code, the thread can relinquish the lock and set the associated condition to something new. The conditions themselves are arbitrary: you define them as needed for your application.

Topics

Initializing an NSConditionLock Object

Accessing the Condition

Acquiring and Releasing a Lock

Identifying the Condition Lock

See Also

Threads and Locking