Public Types | Public Member Functions | Private Member Functions | Private Attributes

threading::condition Class Reference

#include <thread.hpp>

List of all members.

Public Types

enum  WAIT_TIMEOUT_RESULT { WAIT_OK, WAIT_TIMED_OUT, WAIT_ERROR }

Public Member Functions

 condition ()
 ~condition ()
bool wait (const mutex &m)
WAIT_TIMEOUT_RESULT wait_timeout (const mutex &m, unsigned int timeout)
bool notify_one ()
bool notify_all ()

Private Member Functions

 condition (const condition &)
void operator= (const condition &)

Private Attributes

SDL_cond *const cond_

Detailed Description

Definition at line 137 of file thread.hpp.


Member Enumeration Documentation

Enumerator:
WAIT_OK 
WAIT_TIMED_OUT 
WAIT_ERROR 

Definition at line 160 of file thread.hpp.


Constructor & Destructor Documentation

threading::condition::condition (  ) 

Definition at line 101 of file thread.cpp.

threading::condition::~condition (  ) 

Definition at line 104 of file thread.cpp.

References cond_.

threading::condition::condition ( const condition  )  [private]

Member Function Documentation

bool threading::condition::notify_all (  ) 

Definition at line 136 of file thread.cpp.

References cond_, and ERR_G.

Referenced by network_worker_pool::manager::~manager().

Here is the caller graph for this function:

bool threading::condition::notify_one (  ) 

Definition at line 126 of file thread.cpp.

References cond_, and ERR_G.

Referenced by threading::async_operation::notify_finished(), and network_worker_pool::queue_buffer().

Here is the caller graph for this function:

void threading::condition::operator= ( const condition  )  [private]
bool threading::condition::wait ( const mutex m  ) 

Definition at line 109 of file thread.cpp.

References cond_, and threading::mutex::m_.

condition::WAIT_TIMEOUT_RESULT threading::condition::wait_timeout ( const mutex m,
unsigned int  timeout 
)

Definition at line 114 of file thread.cpp.

References cond_, ERR_G, and threading::mutex::m_.

Referenced by threading::async_operation::execute().

Here is the caller graph for this function:


Member Data Documentation

SDL_cond* const threading::condition::cond_ [private]

Definition at line 187 of file thread.hpp.

Referenced by notify_all(), notify_one(), wait(), wait_timeout(), and ~condition().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:26:11 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs