#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);
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.
- lmgr
- The lock manager COM interface.
- out_lock
- The oskit_lock COM interface for the new lock.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.