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:41
Counting semaphore.
Definition: Semaphore.hpp:37
Thread driven by (realtime safe) signals.
Definition: Slave.hpp:35
void wait()
Wait until count is > 0, then decrement.
Definition: Semaphore.hpp:85
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:73