diff options
| -rw-r--r-- | zencore/include/zencore/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zencore/include/zencore/thread.h b/zencore/include/zencore/thread.h index 4b5267a29..30d0c0897 100644 --- a/zencore/include/zencore/thread.h +++ b/zencore/include/zencore/thread.h @@ -78,8 +78,7 @@ public: inline Event& operator=(Event&& Rhs) { - m_EventHandle = Rhs.m_EventHandle; - Rhs.m_EventHandle = nullptr; + std::swap(m_EventHandle, Rhs.m_EventHandle); return *this; } @@ -135,6 +134,7 @@ public: ZENCORE_API bool IsValid() const; ZENCORE_API bool Wait(int TimeoutMs = -1); ZENCORE_API void Terminate(int ExitCode); + ZENCORE_API void Reset(); inline int Pid() const { return m_Pid; } private: |