next up previous contents index
Next: 6.2 oskit_condvar: Condition variable Up: 6.1 oskit_lock: Thread-safe lock Previous: 6.1.1 lock: Lock a

6.1.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.



Utah Flux Research Group