DosExitCritSec (1.2)
◄Function Group► ◄Overview► ◄Changes► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSPROCESS
USHORT DosExitCritSec(VOID)
The DosExitCritSec function restores execution of all threads suspended by
the DosEnterCritSec function.
This function has no parameters.
Return Value
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be the following:
ERROR_CRITSEC_UNDERFLOW
Comments
MS OS/2 maintains the number of outstanding DosEnterCritSec requests. This
count is incremented by DosEnterCritSec requests and decremented by
DosExitCritSec requests. If the count is greater than zero, a
DosExitCritSec request will not restore normal thread execution. If the
count is less than zero, the ERROR_CRITSEC_UNDERFLOW will be returned.
See Also
DosCreateThread, DosEnterCritSec
♦