mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 06:07:05 -06:00
Update to 7-Zip Version 21.02
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
namespace NWindows {
|
||||
|
||||
class CThread
|
||||
class CThread MY_UNCOPYABLE
|
||||
{
|
||||
::CThread thread;
|
||||
public:
|
||||
@@ -17,9 +17,15 @@ public:
|
||||
~CThread() { Close(); }
|
||||
bool IsCreated() { return Thread_WasCreated(&thread) != 0; }
|
||||
WRes Close() { return Thread_Close(&thread); }
|
||||
WRes Create(THREAD_FUNC_RET_TYPE (THREAD_FUNC_CALL_TYPE *startAddress)(void *), LPVOID parameter)
|
||||
{ return Thread_Create(&thread, startAddress, parameter); }
|
||||
WRes Wait() { return Thread_Wait(&thread); }
|
||||
// WRes Wait() { return Thread_Wait(&thread); }
|
||||
WRes Wait_Close() { return Thread_Wait_Close(&thread); }
|
||||
|
||||
WRes Create(THREAD_FUNC_RET_TYPE (THREAD_FUNC_CALL_TYPE *startAddress)(void *), LPVOID param)
|
||||
{ return Thread_Create(&thread, startAddress, param); }
|
||||
WRes Create_With_Affinity(THREAD_FUNC_RET_TYPE (THREAD_FUNC_CALL_TYPE *startAddress)(void *), LPVOID param, CAffinityMask affinity)
|
||||
{ return Thread_Create_With_Affinity(&thread, startAddress, param, affinity); }
|
||||
WRes Create_With_CpuSet(THREAD_FUNC_RET_TYPE (THREAD_FUNC_CALL_TYPE *startAddress)(void *), LPVOID param, const CCpuSet *cpuSet)
|
||||
{ return Thread_Create_With_CpuSet(&thread, startAddress, param, cpuSet); }
|
||||
|
||||
#ifdef _WIN32
|
||||
operator HANDLE() { return thread; }
|
||||
|
||||
Reference in New Issue
Block a user