Oracle iPlanet Web Server 7.0.9 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.

Syntax

void crit_enter(CRITICAL crvar);

Return Values

void

Parameters

CRITICAL crvar is a critical-section variable.

See Also

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