dos12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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