#pragma once #include #if defined(GEKKO) #include #else #include #endif #include namespace Tesses::Framework::Threading { class Thread { std::atomic hasInvoked; #if defined(GEKKO) lwp_t thrd; static void* cb(void* ptr); #else thrd_t thrd; static int cb(void* ptr); #endif std::function fn; public: Thread(std::function fn); void Join(); void Detach(); }; }