18 #ifndef RAUL_COMMAND_HPP
19 #define RAUL_COMMAND_HPP
21 #include <raul/Semaphore.hpp>
22 #include <boost/utility.hpp>
45 inline bool pending() {
return _sem.has_waiter(); }
46 inline void finish() { _sem.
post(); }
55 #endif // RAUL_COMMAND_HPP
A blocking command to be executed in the audio thread.
Definition: Command.hpp:37
bool pending()
Execution context.
Definition: Command.hpp:45
void wait()
Wait until count is > 0, then decrement.
Definition: Semaphore.hpp:69
void post()
Increment (and signal any waiters).
Definition: Semaphore.hpp:60
void operator()()
Caller context.
Definition: Command.hpp:42