#include "thread/Thread.hpp" #include check_return Core::Error Core::Thread::start(Function f, void* p) { ASSERT_ALIGNED_DATA(thread, thrd_t); return thrd_create(thread.as(), f, p) != thrd_success ? Error::THREAD_ERROR : Error::NONE; } check_return Core::Error Core::Thread::join(int* returnValue) { return thrd_join(*thread.as(), returnValue) != thrd_success ? Error::THREAD_ERROR : Error::NONE; }