Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
Condition Class Reference

#include <threadengine.h>

Inheritance diagram for Condition:
Inheritance graph
Collaboration diagram for Condition:
Collaboration graph

Public Member Functions

 Condition ()
 ~Condition ()
void Wakeup ()
void Wait ()
- Public Member Functions inherited from Mutex
 Mutex ()
 ~Mutex ()
void Lock ()
void Unlock ()
bool TryLock ()

Private Attributes

pthread_cond_t cond

Additional Inherited Members

- Protected Attributes inherited from Mutex
pthread_mutex_t mutex

Detailed Description

Definition at line 97 of file threadengine.h.

Constructor & Destructor Documentation

◆ Condition()

Condition::Condition ( )


Definition at line 119 of file threadengine.cpp.

References cond, and pthread_cond_init().

◆ ~Condition()

Condition::~Condition ( )


Definition at line 124 of file threadengine.cpp.

References cond, and pthread_cond_destroy().

Member Function Documentation

◆ Wait()

void Condition::Wait ( )

Called to wait for a Wakeup() call

Definition at line 134 of file threadengine.cpp.

References cond, Mutex::mutex, and pthread_cond_wait().

Referenced by LDAPService::Run().

◆ Wakeup()

void Condition::Wakeup ( )

Field Documentation

◆ cond

pthread_cond_t Condition::cond

Definition at line 101 of file threadengine.h.

Referenced by Condition(), Wait(), Wakeup(), and ~Condition().

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