threading::async_operation Class Reference

#include <thread.hpp>

Collaboration diagram for threading::async_operation:

Collaboration graph
[legend]

List of all members.

Public Types

enum  RESULT { COMPLETED, ABORTED }

Public Member Functions

 async_operation ()
virtual ~async_operation ()
RESULT execute (waiter &wait)
mutexget_mutex ()
virtual void run ()=0
bool notify_finished ()
bool is_aborted () const

Private Attributes

bool aborted_
condition finished_
bool finishedVar_
mutex mutex_


Detailed Description

Definition at line 202 of file thread.hpp.


Member Enumeration Documentation

Enumerator:
COMPLETED 
ABORTED 

Definition at line 206 of file thread.hpp.


Constructor & Destructor Documentation

threading::async_operation::async_operation (  )  [inline]

Definition at line 208 of file thread.hpp.

virtual threading::async_operation::~async_operation (  )  [inline, virtual]

Definition at line 210 of file thread.hpp.


Member Function Documentation

async_operation::RESULT threading::async_operation::execute ( waiter wait  ) 

mutex& threading::async_operation::get_mutex (  )  [inline]

Definition at line 214 of file thread.hpp.

References mutex_.

Referenced by execute(), and run_async_operation().

virtual void threading::async_operation::run (  )  [pure virtual]

Referenced by run_async_operation().

bool threading::async_operation::notify_finished (  ) 

Definition at line 155 of file thread.cpp.

References finished_, finishedVar_, and threading::condition::notify_one().

Referenced by run_async_operation().

bool threading::async_operation::is_aborted (  )  const [inline]

Definition at line 225 of file thread.hpp.

References aborted_.

Referenced by run_async_operation().


Member Data Documentation

Definition at line 228 of file thread.hpp.

Referenced by execute(), and is_aborted().

Definition at line 229 of file thread.hpp.

Referenced by execute(), and notify_finished().

Definition at line 230 of file thread.hpp.

Referenced by execute(), and notify_finished().

Definition at line 231 of file thread.hpp.

Referenced by get_mutex().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs