13#include "../3rd_party/concurrentqueue.h"
14#include "../3rd_party/lightweightsemaphore.h"
16namespace tracktion {
inline namespace graph
37 return pimpl->try_wait();
42 return pimpl->timed_wait (usecs);
47 return pimpl->signal (count);
69 return pimpl->tryWait();
79 return pimpl->signal (count);
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.
LightweightSemaphore(int initialCount=0)
Creates a semaphore with an initial count.
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.
Semaphore(int initialCount=0)
Creates a semaphore with an initial count.
bool wait()
Decrements the count by one and if the result of this goes below zero the call will block.