XBMCMove 1.0
Controlar o XBMC com gestos
|
00001 00008 #ifndef THREAD_H 00009 #define THREAD_H 00010 00011 #include <pthread.h> 00012 00013 class Thread { 00014 public: 00015 Thread(); 00016 ~Thread(); 00017 00018 void Start(); 00019 void Wait(); 00020 void Abort(); 00021 void Detach(); 00022 00023 pthread_t GetId(); 00024 00025 protected: 00026 static void *entryPoint(void *pthis); 00027 virtual void run() = 0; 00028 00029 private: 00030 pthread_t m_threadId; 00031 }; 00032 00033 #endif /* THREAD_H */ 00034