Condvar_Wait; Crit_Enter - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)

condvar_wait

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
is a condition variable.
CONDVAR cv
See also
condvar_init, condvar_notify, condvar_terminate, crit_init,
crit_enter, crit_exit, crit_terminate.

crit_enter

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);
Returns
void
Parameters
is a critical-section variable.
CRITICAL crvar
See also
crit_init, crit_exit, crit_terminate.
Chapter 5
NSAPI Function Reference
139

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents