Important: The information in this document is obsolete and should not be used for new development.
OTAcquireLock
Acquires a lock and marks the beginning of a critical section.C INTERFACE
Boolean OTAcquireLock (OTLock* lockPtr)C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
lockPtr- A pointer to a lock used to identify this section.
- function result
- Returns
trueif the lock is acquired.DISCUSSION
This function attempts to acquire the lock referenced by thelockPtrparameter. If successful,trueis returned. If not, then some other thread is holding the lock, andfalseis returned.Use the
OTClearLockfunction to clear a lock aquired with theOTAcquireLockfunction and to mark the end of a critical section.