author | Wuzzy <almikes@aol.com> |
Sat, 15 Apr 2017 23:21:13 +0200 | |
changeset 12265 | 0641da8c22ee |
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