Zen API

- Home
- Topics
- Types
- Files

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
k64u
Represents a 64-bit unsigned integer.
kSemaphore::kSemaphore_Wait
kStatus kSemaphore_Wait(kSemaphore semaphore, k64u timeout)
Waits until the semaphore can be decremented or the timeout interval has elapsed. ...
kSize
Represents an unsigned integer that can store a pointer address.
kAlloc
Abstract base class for memory allocator types.
kSemaphore::kSemaphore_Post
kStatus kSemaphore_Post(kSemaphore semaphore)
Increments the semaphore.
kSemaphore
Represents a semaphore.
kApiDef.h
Core Zen type declarations.
kStatus
Represents an error code.
kSemaphore::kSemaphore_Construct
kStatus kSemaphore_Construct(kSemaphore *semaphore, kSize initialCount, kAlloc allocator)
Constructs a semaphore object.