18 #ifndef RAUL_SLAVE_HPP
19 #define RAUL_SLAVE_HPP
22 #include <raul/Semaphore.hpp>
23 #include <raul/Thread.hpp>
66 #endif // RAUL_SLAVE_HPP
Abstract base class for a thread.
Definition: Thread.hpp:38
Trivial wrapper around POSIX semaphores (zero memory overhead).
Definition: Semaphore.hpp:39
Thread driven by (realtime safe) signals.
Definition: Slave.hpp:35
void wait()
Wait until count is > 0, then decrement.
Definition: Semaphore.hpp:69
virtual void _whipped()=0
Worker method.
void whip()
Tell the slave to do whatever work it does.
Definition: Slave.hpp:41
void post()
Increment (and signal any waiters).
Definition: Semaphore.hpp:60