scottc@net-community.com
)rfm@gnu.org
)Version: 1.26
Date: 2003/07/31 23:49:31
Copyright: (C) 1996,2003 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSLock.h
- Conforms to:
- NSLocking
- GCFinalization
Standards:
- MacOS-X
- OpenStep
- GNUstep
Description forthcoming.
Method summaryDescription forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
- Declared in:
- Foundation/NSLock.h
- Conforms to:
- NSLocking
- GCFinalization
Standards:
- MacOS-X
- OpenStep
- GNUstep
An NSLock is used in multi-threaded applications to
protect critical pieces of code. While one thread
holds a lock within a piece of code, another thread
cannot execute that code until the first thread has
given up it's hold on the lock. The limitation of
NSLock is that you can only lock an NSLock once and it
must be unlocked before it can be aquired again.
Other lock classes, notably NSRecursiveLock, have
different restrictions.
Attempts to aquire a lock, and waits until it can do so.
Attempts to aquire a lock before the date
limit passes. It returns YES
if it can. It returns NO
if it cannot, or
if the current thread already has the lock (but it waits
until the time limit is up before
returning NO
).
Attempts to aquire a lock, but returns immediately
if the lock cannot be aquired. It returns
YES
if the lock is aquired. It returns
NO
if the lock cannot be aquired or if
the current thread already has the lock.
Description forthcoming.
- Declared in:
- Foundation/NSLock.h
- Conforms to:
- NSLocking
- GCFinalization
Standards:
- MacOS-X
- OpenStep
- GNUstep
See NSLock for more information about what a lock is. A recursive lock extends NSLock in that you can lock a recursive lock multiple times. Each lock must be balanced by a cooresponding unlock, and the lock is not released for another thread to aquire until the last unlock call is made (corresponding to the first lock message).
Method summaryDescription forthcoming.
Attempts to aquire a lock before the date
limit passes. It returns YES
if it can. It returns NO
if it cannot (but
it waits until the time limit is up before
returning NO
).
Attempts to aquire a lock, but returns
NO
immediately if the lock cannot be
aquired. It returns YES
if the lock
is aquired. Can be called multiple times to make nested
locks.
Description forthcoming.
- Declared in:
- Foundation/NSLock.h
Standards:
- MacOS-X
- OpenStep
- GNUstep
Description forthcoming.
Method summaryDescription forthcoming.
Description forthcoming.