Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Windows/Thread.h')
-rwxr-xr-xCPP/Windows/Thread.h1
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); }