30#include <condition_variable> 
   31#include <sptk5/DateTime.h> 
   32#include <sptk5/Exception.h> 
   33#include <sptk5/sptk.h> 
   54    explicit Flag(
bool startingValue = 
false);
 
   96    bool wait_for(
bool value, std::chrono::milliseconds timeout);
 
  110    mutable std::mutex m_lockMutex;
 
  115    std::condition_variable m_condition;
 
  120    bool m_value {
false};
 
  125    size_t m_waiters {0};
 
  130    bool m_terminated {
false};
 
  140    size_t waiters() 
const;
 
Definition: DateTime.h:86
 
bool wait_until(bool value, DateTime timeout)
 
Flag(bool startingValue=false)
 
bool wait_for(bool value, std::chrono::milliseconds timeout)
 
Flag & operator=(bool value)
Definition: Flag.h:84