29#include <sptk5/DateTime.h> 
   30#include <sptk5/Exception.h> 
   31#include <sptk5/sptk.h> 
   34#include <condition_variable> 
   84    std::mutex m_lockMutex;
 
   89    std::condition_variable m_condition;
 
   96    std::counting_semaphore<0x7FFFFFFF> m_value {0};
 
Definition: DateTime.h:86
 
Generic unnamed semaphore class.
Definition: Semaphore.h:52
 
bool sleep_for(std::chrono::milliseconds timeout)
Wait until semaphore value is greater than zero, or until timeout interval is passed.
 
bool sleep_until(DateTime timeout)
Wait until semaphore value is greater than zero, or until timeoutAt occurs.
 
void post()
Post the semaphore.