F.66 ctThrdMutexRel
Releases a mutex.
Short Name
ctThrdMutexRel
TYPE
Threading function
DECLARATION
NINT ctThrdMutexRel(pctMUTEX mutex)DESCRIPTION
Releases the mutex pointed to by mutex, permitting other threads to contend for it.
RETURN
Value Symbolic Constant Explanation 0 NO_ERROR Successful function. 637 TSYR_ERR mutex release failed. Check sysiocod for system-level error return.See Appendix A "c-tree Plus Error Codes" of the c-tree Plus Programmer's Reference Guide for a complete listing of valid c-tree Plus error values.
EXAMPLE
pctMUTEX tfin_mtx;NINT rc;ctThrdMutexGet(&tfin_mtx);rc = tfin;ctThrdMutexRel(&tfin_mtx);LIMITATIONS
Can only release a mutex currently held by this thread. Can only be used with a ctThrd library.
SEE ALSO
ctThrdMutexGet and ctThrdMutexTry
|
FairCom Corporation www.faircom.com |