nlCondInit, nlCondDestroy

intitilize or destroy a condition variable

C Specification

NLboolean nlCondInit(NLcond *cond)

NLboolean nlCondDestroy(NLcond *cond)

Parameters

cond

[in/out]The condition variable to intitialize or destroy.

Description

nlCondInit initializes the condition variable.

nlCondDestroy destroys the condition variable.

Return values

NL_TRUE if no error occurs, otherwise NL_FALSE, and the specific error code can be retrieved by calling nlGetError

Error codes

NL_NULL_POINTER : A NULL pointer was passed to this function.
NL_SYSTEM_ERROR : A system error has ocurred. The system error can be retrieved by calling nlGetSystemError.
NL_OUT_OF_MEMORY : Not enough memory.

See also

nlCondWait,
nlCondBroadcast,
nlCondSignal


Back to the HawkNL index page


Go directly to the main HawkNL page at Hawk Software

© 2000-2002 Phil Frisbie.

Valid XHTML 1.0!