24 #define kLOCK_OPTION_NONE (0x0)
25 #define kLOCK_OPTION_TIMEOUT (0x1)
28 #include <kApi/Threads/kLock.x.h>
kStatus kLock_EnterEx(kLock lock, k64u timeout)
Blocks until exclusive ownership of the lock is acquired or the timeout interval has elapsed...
Represents a 64-bit unsigned integer.
kStatus kLock_Enter(kLock lock)
Blocks until exclusive ownership of the lock is acquired.
Abstract base class for memory allocator types.
Represents a recursive, mutual exclusion lock.
kStatus kLock_ConstructEx(kLock *lock, kLockOption options, kAlloc allocator)
Constructs a lock object with support for behavioral options.
Core Zen type declarations.
Represents a 32-bit signed integer.
kStatus kLock_Exit(kLock lock)
Relinquishes ownership of the lock.
Represents an error code.
Represents a lock construction option.
kStatus kLock_Construct(kLock *lock, kAlloc allocator)
Constructs a lock object.