41 #ifndef RTT_OS_SEMAPHORE_HPP 42 #define RTT_OS_SEMAPHORE_HPP 45 #include "../rtt-config.h" 46 #include "../Time.hpp" 116 #ifndef OROPKG_OS_MACOSX void signal()
Raise this semaphore and signal one thread waiting on this semaphore.
int value()
Return the current count of this semaphore.
int rtos_sem_trywait(rt_sem_t *m)
int rtos_sem_signal(rt_sem_t *m)
An object oriented wrapper around a counting semaphore.
Semaphore(int count)
Initialize a Semaphore with an initial count.
~Semaphore()
Destroy a Semaphore.
void wait()
Lower this semaphore and return if value() is non zero.
int rtos_sem_destroy(rt_sem_t *m)
int rtos_sem_init(rt_sem_t *m, int value)
All these should return zero in case of succes.
int rtos_sem_value(rt_sem_t *m)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
bool trywait()
Try to wait on this semaphore.
int rtos_sem_wait(rt_sem_t *m)