claraty::bg_void_helper< Op > Class Template Reference
#include <background_thread.h>
Collaboration diagram for claraty::bg_void_helper< Op >:

Public Member Functions | |
| bg_void_helper (Op op, ACE_thread_t &tid, bool detach=false) | |
| ~bg_void_helper () | |
Private Member Functions | |
| bg_void_helper (const bg_void_helper &rhs) | |
Static Private Member Functions | |
| static ACE_THR_FUNC_RETURN | dispatch (void *arg) |
Private Attributes | |
| Op | fn |
| ACE_thread_t & | thread_id |
Detailed Description
template<class Op>
class claraty::bg_void_helper< Op >
Definition at line 72 of file background_thread.h.
Constructor & Destructor Documentation
template<class Op>
| claraty::bg_void_helper< Op >::bg_void_helper | ( | const bg_void_helper< Op > & | rhs | ) | [explicit, private] |
template<class Op>
| claraty::bg_void_helper< Op >::bg_void_helper | ( | Op | op, | |
| ACE_thread_t & | tid, | |||
| bool | detach = false | |||
| ) | [inline] |
Definition at line 86 of file background_thread.h.
References claraty::bg_void_helper< Op >::dispatch(), and claraty::bg_void_helper< Op >::thread_id.
00087 : fn(op), thread_id(tid) 00088 { 00089 ACE_Thread_Manager *tm = ACE_Thread_Manager::instance(); 00090 long flags = THR_NEW_LWP; 00091 if (!detach) 00092 flags |= THR_JOINABLE; 00093 tm->spawn(dispatch, this, flags, &thread_id); 00094 }
Here is the call graph for this function:

template<class Op>
| claraty::bg_void_helper< Op >::~bg_void_helper | ( | ) | [inline] |
Member Function Documentation
template<class Op>
| static ACE_THR_FUNC_RETURN claraty::bg_void_helper< Op >::dispatch | ( | void * | arg | ) | [inline, static, private] |
Definition at line 78 of file background_thread.h.
References claraty::bg_void_helper< Op >::fn.
Referenced by claraty::bg_void_helper< Op >::bg_void_helper().
00078 { 00079 bg_void_helper *mgr = static_cast<bg_void_helper*>(arg); 00080 mgr->fn(); 00081 delete mgr; 00082 return 0; 00083 }
Member Data Documentation
template<class Op>
Op claraty::bg_void_helper< Op >::fn [private] |
Definition at line 73 of file background_thread.h.
Referenced by claraty::bg_void_helper< Op >::dispatch().
template<class Op>
ACE_thread_t& claraty::bg_void_helper< Op >::thread_id [private] |
Definition at line 74 of file background_thread.h.
Referenced by claraty::bg_void_helper< Op >::bg_void_helper().
The documentation for this class was generated from the following file: