#include <oskit/com/lock.h>OSKIT_COMDECL oskit_lock_lock(oskit_lock_t *lock);
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.
- lock
- The oskit_lock COM interface for the lock.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.