mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
sys_event_flag improved
This commit is contained in:
parent
bc91ad0f4d
commit
6255f3b07d
7 changed files with 217 additions and 202 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue