next up previous contents index
Next: 5 Input/Output Interfaces Up: 4.12 oskit_lock_mgr: Lock manager: Previous: 4.12.2 allocate_critical_lock: Allocate a

4.12.3 allocate_condvar: Allocate a condition variable

 

SYNOPSIS

#include <oskit/com/lock_mgr.h>

OSKIT_COMDECL oskit_lock_mgr_allocate_condvar(oskit_lock_mgr_t *lmgr, [out] oskit_condvar_t *out_condvar);

DESCRIPTION

This method returns an oskit_condvar_t COM interface in out_condvar. Condition variables may be used in conjuction with locks to form monitors.

PARAMETERS

lmgr
The lock manager COM interface.
out_condvar
The oskit_condvar COM interface for the new condition variable.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.


University of Utah Flux Research Group