sys_event_flag improved

This commit is contained in:
Nekotekina 2015-07-20 00:29:40 +03:00
parent bc91ad0f4d
commit 6255f3b07d
7 changed files with 217 additions and 202 deletions

View file

@ -15,19 +15,6 @@ void EventManager::Clear()
m_map.clear();
}
bool EventManager::CheckKey(u64 key)
{
if (!key)
{
// never exists
return false;
}
std::lock_guard<std::mutex> lock(m_mutex);
return m_map.find(key) != m_map.end();
}
bool EventManager::UnregisterKey(u64 key)
{
if (!key)