Index: src/libchcore/TEvent.cpp =================================================================== diff -u -r8068e0c351055554340ac9755d1bc846893bf2b8 -rf2d00743b74db5b3a3fc6e330b00d2bd4f8fbed8 --- src/libchcore/TEvent.cpp (.../TEvent.cpp) (revision 8068e0c351055554340ac9755d1bc846893bf2b8) +++ src/libchcore/TEvent.cpp (.../TEvent.cpp) (revision f2d00743b74db5b3a3fc6e330b00d2bd4f8fbed8) @@ -34,4 +34,12 @@ { CloseHandle(m_hEvent); } + + void TEvent::SetEvent(bool bSet) + { + if(bSet) + SetEvent(); + else + ResetEvent(); + } } Index: src/libchcore/TEvent.h =================================================================== diff -u -re96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3 -rf2d00743b74db5b3a3fc6e330b00d2bd4f8fbed8 --- src/libchcore/TEvent.h (.../TEvent.h) (revision e96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3) +++ src/libchcore/TEvent.h (.../TEvent.h) (revision f2d00743b74db5b3a3fc6e330b00d2bd4f8fbed8) @@ -30,6 +30,8 @@ virtual ~TEvent(); HANDLE Get() const { return m_hEvent; } + + void SetEvent(bool bSet); void SetEvent() { ::SetEvent(m_hEvent); } void ResetEvent() { ::ResetEvent(m_hEvent); }