Instance Method

tryLock

Attempts to acquire a lock.

Declaration

- (BOOL)tryLock;

Return Value

YES if a lock was acquired, NO otherwise.

Discussion

This method returns immediately after the attempt to acquire a lock.

See Also

Deprecated

- lock

Attempts to acquire a lock on the context.

Deprecated
- unlock

Relinquishes a previously acquired lock.

Deprecated