OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Static Public Attributes | Protected Attributes | Friends | List of all members
openjaus::system::Condition Class Reference

#include <Condition.h>

Inherited by openjaus::system::Queue< Type >, openjaus::system::Queue< openjaus::transport::AS5669::JudpPacket *>, and openjaus::system::Queue< Prioritized *>.

Public Member Functions

 Condition ()
 
virtual ~Condition ()
 
void signal ()
 Operation signal. More...
 
void signalAll ()
 Operation signalAll. More...
 
bool timedWait (int milliseconds)
 Operation timedWait. More...
 
virtual std::string toString () const
 

Static Public Attributes

static const int DEFAULT_WAIT_MSEC = 500
 

Protected Attributes

int numberOfWaitingThreads
 
pthread_cond_t condition
 
pthread_mutex_t mutex
 

Friends

OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Condition &object)
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Condition *object)
 

Constructor & Destructor Documentation

§ Condition()

openjaus::system::Condition::Condition ( )

§ ~Condition()

openjaus::system::Condition::~Condition ( )
virtual

Member Function Documentation

§ signal()

void openjaus::system::Condition::signal ( )

§ signalAll()

void openjaus::system::Condition::signalAll ( )

§ timedWait()

bool openjaus::system::Condition::timedWait ( int  milliseconds)
Parameters
milliseconds

§ toString()

std::string openjaus::system::Condition::toString ( ) const
virtual

Friends And Related Function Documentation

§ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Condition object 
)
friend

§ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Condition object 
)
friend

Member Data Documentation

§ condition

pthread_cond_t openjaus::system::Condition::condition
protected

§ DEFAULT_WAIT_MSEC

const int openjaus::system::Condition::DEFAULT_WAIT_MSEC = 500
static

§ mutex

pthread_mutex_t openjaus::system::Condition::mutex
protected

§ numberOfWaitingThreads

int openjaus::system::Condition::numberOfWaitingThreads
protected

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