Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kLock.h
Go to the documentation of this file.
1
10 #ifndef K_API_LOCK_H
11 #define K_API_LOCK_H
12
13 #include <kApi/kApiDef.h>
14
15 kBeginHeader()
16
17
32 kFx(kStatus) kLock_Construct(kLock* lock, kAlloc allocator);
33
44 kFx(kStatus) kLock_Enter(kLock lock);
45
56 kFx(kStatus) kLock_Exit(kLock lock);
57
58 kEndHeader()
59
60 #include <kApi/Threads/kLock.x.h>
61
62 #endif
kLock::kLock_Enter
kStatus kLock_Enter(kLock lock)
Blocks until exclusive ownership of the lock is acquired.
kAlloc
Abstract base class for memory allocator types.
kLock
Represents a recursive mutual exclusion lock.
kApiDef.h
Core Zen type declarations.
kLock::kLock_Exit
kStatus kLock_Exit(kLock lock)
Relinquishes ownership of the lock.
kStatus
Represents an error code.
kLock::kLock_Construct
kStatus kLock_Construct(kLock *lock, kAlloc allocator)
Constructs a lock object.