author | Wuzzy <Wuzzy2@mail.ru> |
Thu, 08 Mar 2018 00:18:32 +0100 | |
changeset 13099 | 071dcdf33f86 |
parent 12213 | bb5522e88ab2 |
permissions | -rw-r--r-- |
// VirtThread.h #ifndef __VIRTTHREAD_H #define __VIRTTHREAD_H #include "../../Windows/Synchronization.h" #include "../../Windows/Thread.h" struct CVirtThread { NWindows::NSynchronization::CAutoResetEvent StartEvent; NWindows::NSynchronization::CAutoResetEvent FinishedEvent; NWindows::CThread Thread; bool ExitEvent; ~CVirtThread(); HRes Create(); void Start(); void WaitFinish() { FinishedEvent.Lock(); } virtual void Execute() = 0; }; #endif