Creates an RT semaphore.
Visual Basic:
Function ntxCreateRtSemaphore( ByVal hLocation As Integer, ByVal wInitCount As Integer, ByVal wMaxCount As Integer, ByVal wFlags As Integer) As Integer
Visual C#:
Int32 ntxCreateRtSemaphore ( Int32 hLocation, Int32 wInitCount, Int32 wMaxCount, Int32 wFlags);
hLocation
wInitCount
wMaxCount
wFlags
NTX_FIFO_QUEUING |
Queues threads on a First-In-First-Out basis. This value is mutually exclusive with the NTX_PRIORITY_QUEUING value. |
NTX_PRIORITY_QUEUING |
Queues threads waiting on this object on a priority basis. |
A handle for the newly-created semaphore.
E_MEM
E_LIMIT
E_SLOT
E_PARAM
wInitCount
contains a value larger that wMaxCount
wMaxCount
contains the value 0 (zero). Versions | Reference |
---|---|
INtime 3.0 | INtimeDotNet |