[Toc][Index]

DosExitCritSec


Bindings:  C, MASM 

This call restores normal thread dispatching for the current process. 
 DosExitCritSec   ( ) 
 
 rc (USHORT) - return 
    Return code descriptions are: 
    0         NO_ERROR 
    485       ERROR_CRITSEC_UNDERFLOW 
 
 Remarks 
 A count is maintained of the number of times a DosEnterCritSec request is 
 made without a corresponding DosExitCritSec. The count is incremented by 
 DosEnterCritSec and decremented by  DosExitCritSec. Normal thread 
 dispatching is not restored until the count is 0. 
 The outstanding DosEnterCritSec count is maintained in a word. If 
 overflow occurs, the count is set to the maximum value, no operation is 
 performed, and the request returns with an error. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs