CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
NSROOT::OS::Event Class Reference
Collaboration diagram for NSROOT::OS::Event:

Public Member Functions

 Event (bool autoReset=true)
void notify_all ()
void notify_one ()
bool wait ()
bool wait_for (unsigned millisec)
void reset ()
 Event (const Event &other)=delete
Event & operator= (const Event &other)=delete

Private Member Functions

void __reset (bool force)

Private Attributes

volatile bool m_notified
volatile bool m_notifyOne
unsigned m_waitingCount
bool m_autoReset
Condition< volatile bool > m_condition
Mutex m_mutex

Detailed Description

Definition at line 31 of file event.h.

Constructor & Destructor Documentation

◆ Event()

NSROOT::OS::Event::Event ( bool autoReset = true)
inline

Definition at line 34 of file event.h.

◆ ~Event()

NSROOT::OS::Event::~Event ( )
inline

Definition at line 40 of file event.h.

Member Function Documentation

◆ __reset()

void NSROOT::OS::Event::__reset ( bool force)
inlineprivate

Definition at line 98 of file event.h.

◆ notify_all()

void NSROOT::OS::Event::notify_all ( )
inline

Definition at line 42 of file event.h.

◆ notify_one()

void NSROOT::OS::Event::notify_one ( )
inline

Definition at line 50 of file event.h.

◆ reset()

void NSROOT::OS::Event::reset ( )
inline

Definition at line 80 of file event.h.

◆ wait()

bool NSROOT::OS::Event::wait ( )
inline

Definition at line 58 of file event.h.

◆ wait_for()

bool NSROOT::OS::Event::wait_for ( unsigned millisec)
inline

Definition at line 69 of file event.h.

Field Documentation

◆ m_autoReset

bool NSROOT::OS::Event::m_autoReset
private

Definition at line 94 of file event.h.

◆ m_condition

Condition<volatile bool> NSROOT::OS::Event::m_condition
private

Definition at line 95 of file event.h.

◆ m_mutex

Mutex NSROOT::OS::Event::m_mutex
private

Definition at line 96 of file event.h.

◆ m_notified

volatile bool NSROOT::OS::Event::m_notified
private

Definition at line 91 of file event.h.

◆ m_notifyOne

volatile bool NSROOT::OS::Event::m_notifyOne
private

Definition at line 92 of file event.h.

◆ m_waitingCount

unsigned NSROOT::OS::Event::m_waitingCount
private

Definition at line 93 of file event.h.


The documentation for this class was generated from the following file:
  • /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/os/threads/event.h