next up previous contents index
Next: 4.11 oskit_condvar: Condition variable Up: 4.10 oskit_lock: Thread-safe lock Previous: 4.10.1 lock: Lock a

4.10.2 lock: Unlock a lock

 

SYNOPSIS

#include <oskit/com/lock.h>

OSKIT_COMDECL oskit_lock_unlock(oskit_lock_t *lock);

DESCRIPTION

This method unlocks lock. If there are any threads waiting for the lock, one will be woken up and granted the lock.

PARAMETERS

lock
The oskit_lock COM interface for the lock.

RETURNS

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



University of Utah Flux Research Group