ctThrdSemapInit Initialize a semaphore. Short Name ctThrdSemapInit() Type Threading function Declaration NINT ctThrdSemapInit(pctSEMAP semap, NINT count) Description A semaphore is a synchronization object that may be acquired by more than one thread at a time, and may be released by a thread that has not acquired it. The count parameter specifies the maximum number of threads that may acquire it simultaneously. The semap parameter is the address of an object of type ctSEMAP. Return
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. Limitations Can only be used with a ctThrd library. See also ctThrdSemapCls(), ctThrdSemapGet(), ctThrdSemapRel(), ctThrdSemapTry() |
||||||||||||||||||