Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kSemaphore.h
Go to the documentation of this file.
1 
10 #ifndef K_API_SEMAPHORE_H
11 #define K_API_SEMAPHORE_H
12 
13 #include <kApi/kApiDef.h>
14 #include <kApi/Threads/kSemaphore.x.h>
15 
16 
23 //typedef kObject kSemaphore; --forward-declared in kApiDef.x.h
24 
34 kFx(kStatus) kSemaphore_Construct(kSemaphore* semaphore, kSize initialCount, kAlloc allocator);
35 
43 kFx(kStatus) kSemaphore_Post(kSemaphore semaphore);
44 
55 kFx(kStatus) kSemaphore_Wait(kSemaphore semaphore, k64u timeout);
56 
57 #endif
Represents a 64-bit unsigned integer.
kStatus kSemaphore_Wait(kSemaphore semaphore, k64u timeout)
Waits until the semaphore can be decremented or the timeout interval has elapsed. ...
Represents an unsigned integer that can store a pointer address.
Abstract base class for memory allocator types.
kStatus kSemaphore_Post(kSemaphore semaphore)
Increments the semaphore.
Represents a semaphore.
Core Zen type declarations.
Represents an error code.
kStatus kSemaphore_Construct(kSemaphore *semaphore, kSize initialCount, kAlloc allocator)
Constructs a semaphore object.