ExitCritSec

Allows other threads in the NLM to run

Local Servers:blocking
Remote Servers:N/A
Classification:3.x, 4.x, 5.x, 6.x
Service:Thread

Syntax

  #include <nwthread.h>  
   
  int ExitCritSec  (void); 
  

Return Values

The following table lists return values and descriptions.

Value

Hex

Name

Description

0

(0x00)

ESUCCESS

Threads suspended by EnterCritSec are released to resume.

19

 

EWRNGKND

One or more threads in the NLM were not in a critical section.

Remarks

The ExitCritSec function reverses the effect of the EnterCritSec function.

NOTE:If a thread is created (with BeginThread or BeginThreadGroup) while the NLM is in a critical section, ExitCritSec returns EWRNGKND, but still releases threads suspended by EnterCritSec.

See Also

EnterCritSec, ResumeThread