thread detach 완성

This commit is contained in:
2025-04-24 21:36:48 +09:00
parent 07cff49813
commit c660c41657
6 changed files with 26 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ public:
~Thread();
void join();
void deatch();
private:
#ifdef _WIN32
@@ -48,6 +49,7 @@ private:
#elif __linux__
pthread_t handle_;
#endif
bool detached = false;
};
} // namespace Chattr