Optimized ConditionVariable Windows implementation

Former-commit-id: 4f2e582d64e8f3a1f83cea2bd0f7220987aa4332
This commit is contained in:
Lynix
2013-11-30 12:29:39 +01:00
parent 3026d8b9ac
commit 3c337c0191
2 changed files with 8 additions and 26 deletions

View File

@@ -10,6 +10,7 @@
#define NAZARA_CONDITIONVARIABLEIMPL_HPP
#include <Nazara/Prerequesites.hpp>
#include <atomic>
#include <windows.h>
class NzMutexImpl;
@@ -41,9 +42,8 @@ class NzConditionVariableImpl
MAX_EVENTS
};
CRITICAL_SECTION m_countLock;
std::atomic_uint m_count;
HANDLE m_events[MAX_EVENTS];
unsigned int m_count;
#endif
};