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

#include <timer_queue.h>

Public Member Functions

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

Private Attributes

unsigned m_count = 0
 
std::condition_variable m_cv
 
std::mutex m_mtx
 
std::atomic_bool m_unlock = false
 

Detailed Description

Definition at line 18 of file timer_queue.h.

Constructor & Destructor Documentation

◆ Semaphore()

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

Definition at line 21 of file timer_queue.h.

Member Function Documentation

◆ manualUnlock()

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

Definition at line 46 of file timer_queue.h.

◆ notify()

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

Definition at line 24 of file timer_queue.h.

◆ waitUntil()

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

Definition at line 34 of file timer_queue.h.

Member Data Documentation

◆ m_count

unsigned BT::details::Semaphore::m_count = 0
private

Definition at line 55 of file timer_queue.h.

◆ m_cv

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

Definition at line 54 of file timer_queue.h.

◆ m_mtx

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

Definition at line 53 of file timer_queue.h.

◆ m_unlock

std::atomic_bool BT::details::Semaphore::m_unlock = false
private

Definition at line 56 of file timer_queue.h.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:09