15 class LightweightSemaphore;
16 namespace details {
class Semaphore; }
19namespace tracktion {
inline namespace graph
62 void signal (
int count = 1);
114 void signal (
int count = 1);
A counting semaphore that spins on a atomic before waiting so will avoid system calls if wait periods...
bool wait()
Decrements the count by one and if the result of this goes below zero the call will block.
bool timed_wait(std::uint64_t usecs)
Performs a wait operation.
bool try_wait()
Attemps to decrement the count by one.
~LightweightSemaphore()
Destructor.
void signal(int count=1)
Increases the count by the ammount specified.
A basic counting semaphore.
bool try_wait()
Attemps to decrement the count by one.
void signal(int count=1)
Increases the count by the ammount specified.
bool timed_wait(std::uint64_t usecs)
Performs a wait operation.
bool wait()
Decrements the count by one and if the result of this goes below zero the call will block.