attempt to lock a mutex without blocking
POSIX Threads Library (libpthread, -lpthread)
() function locks
. If the mutex is already locked,
() will not block
waiting for the mutex, but will return an error condition.
return zero, otherwise an error number will be returned to indicate the error.
() function will
- The value specified by mutex is
- Mutex is already locked.
- The argument mutex points to a robust
mutex and the previous owning thread terminated while holding the mutex
lock. The lock was granted to the caller and it is up to the new owner to
make the state consistent.
- The state protected by the mutex is not
() function conforms
to ISO/IEC 9945-1:1996