![]() |
Murl Engine API
Version 2025.1
|
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 () const |
| Signal the semaphore. More... | |
| Bool | Try () const |
| Check the signal. More... | |
| Bool | Wait () const |
| Wait for the signal. More... | |
| Bool | Wait (Time timeout) const |
| Wait for the signal with timeout. More... | |
Public Member Functions inherited from Murl::NonCopyable | |
| NonCopyable ()=default | |
| The default constructor. | |
Protected Attributes | |
| SemaphoreHandle * | mHandle |
| The anonymous semaphore handle for internal use only. | |
| Bool Murl::System::Semaphore::Signal | ( | ) | const |
Signal the semaphore.
| Bool Murl::System::Semaphore::Try | ( | ) | const |
Check the signal.
| Bool Murl::System::Semaphore::Wait | ( | ) | const |
Wait for the signal.
Wait for the signal with timeout.
| timeout | The maximum time to wait for the signal. |