![]() |
Murl Engine API
Version 2018.3
|
The semaphore class for thread synchronization. More...
#include <murl_system_semaphore.h>
The semaphore class for thread synchronization.
One thread can Wait() for a signal until another thread is sending the Signal().
Public Member Functions | |
Semaphore () | |
The default constructor. | |
~Semaphore () | |
The destructor. | |
Bool | Signal () |
Signal the semaphore. More... | |
Bool | Try () |
Check the signal. More... | |
Bool | Wait () |
Wait for the signal. More... | |
Bool | Wait (System::Time timeout) |
Wait for the signal with timeout. More... | |
Protected Attributes | |
SemaphoreHandle * | mHandle |
The anonymous semaphore handle for internal use only. More... | |
Bool Murl::System::Semaphore::Signal | ( | ) |
Signal the semaphore.
Bool Murl::System::Semaphore::Try | ( | ) |
Check the signal.
Bool Murl::System::Semaphore::Wait | ( | ) |
Wait for the signal.
Bool Murl::System::Semaphore::Wait | ( | System::Time | timeout | ) |
Wait for the signal with timeout.
timeout | The maximum time to wait for the signal. |
|
protected |
The anonymous semaphore handle for internal use only.