rpcsx/rpcs3/Emu/IdManager.cpp
Nekotekina dd665e7363 ID manager simplified
ID manager refactoring, redundant "type" information removed
2015-08-24 21:22:19 +03:00

20 lines
271 B
C++

#include "stdafx.h"
#include "IdManager.h"
namespace idm
{
std::mutex g_id_mutex;
std::unordered_map<u32, ID_data_t> g_id_map;
u32 g_cur_id = 1;
void clear()
{
std::lock_guard<std::mutex> lock(g_id_mutex);
g_id_map.clear();
g_cur_id = 1; // first ID
}
}