next up previous contents index
Next: 6.3.3 allocate_condvar: Allocate a Up: 6.3 oskit_lock_mgr: Lock manager: Previous: 6.3.1 allocate_lock: Allocate a

6.3.2 allocate_critical_lock: Allocate a critical thread-safe lock

 

SYNOPSIS

#include <oskit/com/lock_mgr.h>

OSKIT_COMDECL oskit_lock_mgr_allocate_critical_lock(oskit_lock_mgr_t *lmgr, [out] oskit_lock_t *out_lock);

DESCRIPTION

This method returns an oskit_lock_t COM interface in out_lock. The lock is flagged as critical so that interrupts are blocked while the lock is held.

PARAMETERS

lmgr
The lock manager COM interface.
out_lock
The oskit_lock COM interface for the new lock.

RETURNS

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



Utah Flux Research Group