Sun Java System Web Server 7.0 Update 4 NSAPI Developer's Guide

crit_enter() Function

The crit_enter function is a critical-section function that attempts to enter a critical section. Use this function to gain ownership of a critical section. If another thread already owns the section, the calling thread is blocked until the first thread surrenders ownership by calling crit_exit.


void crit_enter(CRITICAL crvar);

Return Values



CRITICAL crvar is a critical-section variable.

See Also

crit_init() Function, crit_exit() Function, crit_terminate() Function