Sun Java System Web Server 7.0 NSAPI Developer's Guide

condvar_wait

The condvar_wait function is a critical-section function that blocks on a given condition variable. Use this function to wait for a critical section (specified by a condition variable argument) to become available. The calling thread is blocked until another thread calls condvar_notify with the same condition variable argument. The caller must have entered the critical section associated with this condition variable before calling condvar_wait.

Syntax

void condvar_wait(CONDVAR cv);

Returns

void

Parameters

CONDVAR cv is a condition variable.

See Also

condvar_init, condvar_terminate, condvar_notify, crit_init, crit_enter, crit_exit, crit_terminate