claraty::bg< void > Class Template Reference
#include <background_thread.h>
Inheritance diagram for claraty::bg< void >:


Public Member Functions | |
| template<class Op> | |
| bg (Op op, bool detach=false) | |
| virtual | ~bg () |
| virtual void | wait () |
Protected Attributes | |
| bool | detached |
Private Member Functions | |
| bg (const bg &rhs) | |
Private Attributes | |
| ACE_thread_t | thread_id |
Detailed Description
template<>
class claraty::bg< void >
Definition at line 134 of file background_thread.h.
Constructor & Destructor Documentation
| claraty::bg< void >::bg | ( | const bg< void > & | rhs | ) | [explicit, private] |
template<class Op>
| claraty::bg< void >::bg | ( | Op | op, | |
| bool | detach = false | |||
| ) | [inline] |
Definition at line 143 of file background_thread.h.
References claraty::bg< result_type >::thread_id.
00144 : BG_Task(), 00145 // ACE_thread_t must be initialized to 0 for VxWorks 00146 // (undocumented in ACE) 00147 thread_id (0), 00148 detached(detach) 00149 { 00150 new bg_void_helper<Op>(op, thread_id, detach); 00151 }
| virtual claraty::bg< void >::~bg | ( | ) | [inline, virtual] |
Definition at line 153 of file background_thread.h.
References claraty::bg< result_type >::detached, and claraty::bg< result_type >::wait().
Here is the call graph for this function:

Member Function Documentation
| virtual void claraty::bg< void >::wait | ( | ) | [inline, virtual] |
Reimplemented from claraty::BG_Task.
Reimplemented in claraty::auto_bg< void >.
Definition at line 158 of file background_thread.h.
References claraty::bg< result_type >::detached, and claraty::bg< result_type >::thread_id.
00158 { 00159 assert(!detached); 00160 ACE_Thread_Manager *tm = ACE_Thread_Manager::instance(); 00161 tm->join(thread_id); 00162 detached = true; 00163 }
Member Data Documentation
ACE_thread_t claraty::bg< void >::thread_id [private] |
Definition at line 135 of file background_thread.h.
bool claraty::bg< void >::detached [protected] |
Definition at line 140 of file background_thread.h.
The documentation for this class was generated from the following file: