author | unc0rr |
Thu, 08 Mar 2018 21:58:59 +0100 | |
changeset 13136 | f10f4bf5f84d |
parent 12218 | 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