Changeset 18476 for lang/c/mpio/trunk/mp/iothreads_impl.pre.h
- Timestamp:
- 08/30/08 15:15:48 (4 months ago)
- Files:
-
- 1 modified
-
lang/c/mpio/trunk/mp/iothreads_impl.pre.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/c/mpio/trunk/mp/iothreads_impl.pre.h
r18311 r18476 48 48 49 49 template <typename ThreadIMPL> 50 inline void manager::add_thread() {instance().add_thread_impl<ThreadIMPL>(); }50 inline ThreadIMPL* manager::add_thread() { return instance().add_thread_impl<ThreadIMPL>(); } 51 51 52 52 MP_ARGS_BEGIN 53 53 template <typename ThreadIMPL, MP_ARGS_TEMPLATE> 54 inline void manager::add_thread(MP_ARGS_PARAMS) {instance().add_thread_impl<ThreadIMPL>(MP_ARGS_FUNC); }54 inline ThreadIMPL* manager::add_thread(MP_ARGS_PARAMS) { return instance().add_thread_impl<ThreadIMPL>(MP_ARGS_FUNC); } 55 55 MP_ARGS_END 56 56 57 57 58 58 template <typename ThreadIMPL> 59 voidmanager::add_thread_impl()59 ThreadIMPL* manager::add_thread_impl() 60 60 { 61 61 ThreadIMPL* impl = m_zone.allocate<ThreadIMPL>(); 62 62 m_zone.allocate< pthread_thread<ThreadIMPL> >(impl); 63 return impl; 63 64 } 64 65 65 66 MP_ARGS_BEGIN 66 67 template <typename ThreadIMPL, MP_ARGS_TEMPLATE> 67 voidmanager::add_thread_impl(MP_ARGS_PARAMS)68 ThreadIMPL* manager::add_thread_impl(MP_ARGS_PARAMS) 68 69 { 69 70 ThreadIMPL* impl = m_zone.allocate<ThreadIMPL, MP_ARGS_TYPES>(MP_ARGS_FUNC); 70 71 m_zone.allocate< pthread_thread<ThreadIMPL> >(impl); 72 return impl; 71 73 } 72 74 MP_ARGS_END
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)