75 std::atomic<int> _waiting{0};
79 ::pthread_cond_t _cond{};
Wrapper for the pthread_cond mechanism.
Definition Condition.h:16
bool notifyOne()
Signals a single thread.
int notifyAll()
Signals all threads.
bool wait(Mutex &mutex, const TimeSpec &timeout=TimeSpec())
Waits for a signal with a timeout when a non-zero timeout is passed.
::pthread_cond_t * handle_type
Handle type.
Definition Condition.h:21
const Condition & operator=(const Condition &)=delete
Prevent copying.
Condition(const std::string &name="")
Constructor.
int getWaiting() const
Returns the amount of threads waiting.
const std::string & getName()
Lightweight intra process thread synchronization.
Definition Mutex.h:17
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10
Class wrapper for timespec structure to modify.
Definition TimeSpec.h:12