00001 #ifndef __THREADSPAWNINGTIMER_H 00002 #define __THREADSPAWNINGTIMER_H 00003 00004 #include "Timer.h" 00005 00006 class ThreadSpawningTimer: public Timer 00007 { 00008 public: 00009 static ThreadSpawningTimer* instance(); 00010 static void destroy(); 00011 00012 private: 00013 ThreadSpawningTimer(); 00014 ~ThreadSpawningTimer(); 00015 virtual void doAction(TimerNode*); 00016 00017 pthread_attr_t m_attr; 00018 static ThreadSpawningTimer* m_instance; 00019 }; 00020 00021 #endif // __TIMER_H