diff options
Diffstat (limited to 'CPP/Windows/Thread.h')
-rwxr-xr-x | CPP/Windows/Thread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CPP/Windows/Thread.h b/CPP/Windows/Thread.h index 044ec9a3..7edc6827 100755 --- a/CPP/Windows/Thread.h +++ b/CPP/Windows/Thread.h @@ -20,6 +20,7 @@ class CThread public: CThread() { Thread_Construct(&thread); } ~CThread() { Close(); } + bool IsCreated() { return Thread_WasCreated(&thread) != 0; } HRes Close() { return Thread_Close(&thread); } HRes Create(THREAD_FUNC_RET_TYPE (THREAD_FUNC_CALL_TYPE *startAddress)(void *), LPVOID parameter) { return Thread_Create(&thread, startAddress, parameter); } |