00001 00009 #ifndef __CALLBACK_TIMER__ 00010 #define __CALLBACK_TIMER__ 00011 00012 #include <omnithread.h> 00013 #include <platform.h> 00014 00015 00016 namespace DeviceAccess { 00017 00019 class E_API CallbackTimer : public omni_thread { 00020 private: 00021 bool _exit; 00022 00023 public: 00025 CallbackTimer(); 00027 ~CallbackTimer(); 00029 // Waits 1 second for each tick. 00030 void run(void* args); 00032 void exit(); 00033 }; 00034 } 00035 00036 #endif 00037