Thread.hpp 388 B

1234567891011121314151617181920
  1. #ifndef CORE_THREAD_H
  2. #define CORE_THREAD_H
  3. #include "utils/AlignedData.h"
  4. #include "utils/Check.hpp"
  5. #include "utils/Error.hpp"
  6. namespace Core {
  7. class Thread {
  8. AlignedData<8, 8> thread;
  9. public:
  10. using Function = int (*)(void*);
  11. check_return Error start(Function f, void* p);
  12. check_return Error join(int* returnValue = nullptr);
  13. };
  14. }
  15. #endif