FairCom Corporation


F.79 ctThrdSemapRel


Release one unit of a semaphore.

Short Name

ctThrdSemapRel

TYPE

Threading function

DECLARATION

NINT ctThrdSemapRel(pctSEMAP semap)

DESCRIPTION

Release one unit of semaphore semap.

RETURN

Value
Symbolic Constant
Explanation
0
NO_ERROR
Successful function.
90
NQUE_ERR
Invalid qid.
92
QMRT_ERR
Queue memory error.
156
NTIM_ERR
Timeout, no unit available for semaphore semap.
514
CQUE_ERR
Queue could not be closed.

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.

LIMITATIONS

Can only be used with a ctThrd library.

SEE ALSO

ctThrdSemapCls, ctThrdSemapGet, ctThrdSemapInit, and ctThrdSemapTry.


FairCom Corporation
www.faircom.com