#include <thread.hpp>
Public Types | |
| enum | RESULT { COMPLETED, ABORTED } |
Public Member Functions | |
| async_operation () | |
| virtual | ~async_operation () |
| RESULT | execute (async_operation_ptr this_ptr, waiter &wait) |
| mutex & | get_mutex () |
| virtual void | run ()=0 |
| bool | notify_finished () |
| bool | is_aborted () const |
Private Attributes | |
| boost::scoped_ptr< thread > | thread_ |
| bool | aborted_ |
| condition | finished_ |
| bool | finishedVar_ |
| mutex | mutex_ |
Static Private Attributes | |
| static active_operation_list | active_ |
Definition at line 217 of file thread.hpp.
| Enumerator | |
|---|---|
| COMPLETED | |
| ABORTED | |
Definition at line 221 of file thread.hpp.
|
inline |
Definition at line 223 of file thread.hpp.
References active_.
|
inlinevirtual |
Definition at line 229 of file thread.hpp.
| async_operation::RESULT threading::async_operation::execute | ( | async_operation_ptr | this_ptr, |
| waiter & | wait | ||
| ) |
Definition at line 151 of file thread.cpp.
References ABORTED, aborted_, active_, COMPLETED, finished_, finishedVar_, get_mutex(), threading::waiter::process(), run_async_operation(), thread_, threading::waiter::WAIT, threading::condition::WAIT_ERROR, threading::condition::WAIT_OK, and threading::condition::wait_timeout().
|
inline |
|
inline |
Definition at line 244 of file thread.hpp.
References aborted_.
| bool threading::async_operation::notify_finished | ( | ) |
Definition at line 144 of file thread.cpp.
References finished_, finishedVar_, and threading::condition::notify_one().
|
pure virtual |
|
private |
Definition at line 248 of file thread.hpp.
Referenced by execute(), and is_aborted().
|
staticprivate |
Definition at line 253 of file thread.hpp.
Referenced by async_operation(), and execute().
|
private |
Definition at line 249 of file thread.hpp.
Referenced by execute(), and notify_finished().
|
private |
Definition at line 250 of file thread.hpp.
Referenced by execute(), and notify_finished().
|
private |
Definition at line 251 of file thread.hpp.
Referenced by get_mutex().
|
private |
Definition at line 247 of file thread.hpp.
Referenced by execute().
1.8.8