mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 11:14:58 -06:00
4.65
This commit is contained in:
committed by
Kornel Lesiński
parent
1dc92281fa
commit
8874e4fbc9
@@ -25,6 +25,9 @@ public:
|
||||
WRes Wait() { return Thread_Wait(&thread); }
|
||||
|
||||
#ifdef _WIN32
|
||||
operator HANDLE() { return thread.handle; }
|
||||
void Attach(HANDLE handle) { thread.handle = handle; }
|
||||
HANDLE Detach() { HANDLE h = thread.handle; thread.handle = NULL; return h; }
|
||||
DWORD Resume() { return ::ResumeThread(thread.handle); }
|
||||
DWORD Suspend() { return ::SuspendThread(thread.handle); }
|
||||
bool Terminate(DWORD exitCode) { return BOOLToBool(::TerminateThread(thread.handle, exitCode)); }
|
||||
|
||||
Reference in New Issue
Block a user