Changeset 18340 for lang/c/mpio/trunk/mp/iothreads/timer.h
- Timestamp:
- 08/27/08 22:02:39 (4 months ago)
- Files:
-
- 1 modified
-
lang/c/mpio/trunk/mp/iothreads/timer.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/c/mpio/trunk/mp/iothreads/timer.h
r18311 r18340 27 27 28 28 struct timer { 29 private:29 private: 30 30 class timer_thread : public pthread_thread<timer_thread> { 31 31 public: … … 51 51 }; 52 52 53 public:53 public: 54 54 template <typename T> 55 55 static void start(double interval_sec, void (*callback)(void*), T* obj) 56 56 { 57 57 iothreads::manager::add_thread<timer_thread>(interval_sec, 58 callback, 59 reinterpret_cast<void*>(obj)); 58 callback, reinterpret_cast<void*>(obj)); 60 59 } 61 60 };
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)