Public Member Functions | Private Attributes | List of all members
BT::details::Semaphore Class Reference

#include <timer_queue.h>

Public Member Functions

void notify ()
 
 Semaphore (unsigned int count=0)
 
void wait ()
 
template<class Clock , class Duration >
bool waitUntil (const std::chrono::time_point< Clock, Duration > &point)
 

Private Attributes

unsigned int m_count
 
std::condition_variable m_cv
 
std::mutex m_mtx
 

Detailed Description

Definition at line 17 of file timer_queue.h.

Constructor & Destructor Documentation

BT::details::Semaphore::Semaphore ( unsigned int  count = 0)
inline

Definition at line 20 of file timer_queue.h.

Member Function Documentation

void BT::details::Semaphore::notify ( )
inline

Definition at line 24 of file timer_queue.h.

void BT::details::Semaphore::wait ( )
inline

Definition at line 31 of file timer_queue.h.

template<class Clock , class Duration >
bool BT::details::Semaphore::waitUntil ( const std::chrono::time_point< Clock, Duration > &  point)
inline

Definition at line 39 of file timer_queue.h.

Member Data Documentation

unsigned int BT::details::Semaphore::m_count
private

Definition at line 51 of file timer_queue.h.

std::condition_variable BT::details::Semaphore::m_cv
private

Definition at line 50 of file timer_queue.h.

std::mutex BT::details::Semaphore::m_mtx
private

Definition at line 49 of file timer_queue.h.


The documentation for this class was generated from the following file:


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 04:01:55