Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

ctThrdMutexCls

Closes a mutex.

Short Name

ctThrdMutexCls()

Type

Threading function

Declaration

NINT ctThrdMutexCls(pctMUTEX mutex)

Description

Closes the mutex referenced by mutex, making it in active.

Return

ctThrdMutexCls() returns NO_ERROR. See FairCom DB Error Codes for a complete listing of valid FairCom DB error values.

Example

See ctmtex.c and ctmtap.c for ctThrdMutexCls() examples.

Limitations

Can only close a mutex currently held by this thread with no other threads in contention. Can only be used with a ctThrd library.

See also

ctThrdMutexGet, ctThrdMutexTry

TOCIndex