TYThread.hpp 295 B

12345678910111213141516171819202122232425
  1. #ifndef XYZ_TYThread_HPP_
  2. #define XYZ_TYThread_HPP_
  3. class TYThreadImpl;
  4. class TYThread
  5. {
  6. public:
  7. typedef void* (*Callback_t)(void*);
  8. TYThread();
  9. ~TYThread();
  10. int create(Callback_t cb, void* arg);
  11. int destroy();
  12. private:
  13. TYThreadImpl* impl;
  14. };
  15. #endif