|
ReXGlue SDK
|
Public Member Functions | |
| SemaphoreObject (i32 initial_count, i32 maximum_count_in) | |
| SemaphoreObject (const X_KSEMAPHORE &header) | |
| bool | Release (i32 release_count, i32 *out_previous_count) |
Public Attributes | |
| PublishedPtr< rex::platform::Semaphore > | semaphore |
| u32 | maximum_count = 0 |
| rex::kernel::SemaphoreObject::SemaphoreObject | ( | i32 | initial_count, |
| i32 | maximum_count_in ) |
Constructs a semaphore from a starting count and a maximum count.
| maximum_count_in | The count the semaphore cannot exceed. |
|
explicit |
Constructs a semaphore from a guest semaphore.
| header | The guest semaphore whose signal state and limit initialize the object. |
| bool rex::kernel::SemaphoreObject::Release | ( | i32 | release_count, |
| i32 * | out_previous_count ) |
Releases a semaphore.
| out_previous_count | Receives the count before the release, may be null. |
| PublishedPtr<rex::platform::Semaphore> rex::kernel::SemaphoreObject::semaphore |
Host semaphore that carries the count and wakes waiters.