next up previous contents index
Next: 4.10.2 lock: Unlock a Up: 4.10 oskit_lock: Thread-safe lock Previous: 4.10 oskit_lock: Thread-safe lock

4.10.1 lock: Lock a lock

 

SYNOPSIS

#include <oskit/com/lock.h>

OSKIT_COMDECL oskit_lock_lock(oskit_lock_t *lock);

DESCRIPTION

This method attempts to lock lock. If the lock cannot be immediately granted, the current thread is put to sleep until the lock can be granted.

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