Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The CMDSemWait function waits until a RAM semaphore is cleared.
Syntax
USHORT FAR CMDSemWait(
ULONG FAR *ramSem,
ULONG timeOut
);
Parameters
ramSem
Address of the semaphore.
timeOut
Length of time in milliseconds to wait before returning.
Return Value
0
OK.
ERROR_SEM_TIMEOUT
Time-out expired before semaphore operation completed.
ERROR_SEM_OWNED
This thread or another thread owns the semaphore, and the calling thread specified zero time-out.