Fixed Object Manager (detached)

This commit is contained in:
Nekotekina 2015-08-06 16:05:33 +03:00
parent 9923f96431
commit f8afee3325
6 changed files with 107 additions and 86 deletions

View file

@ -17,3 +17,17 @@ namespace idm
g_cur_id = 1; // first ID
}
}
namespace fxm
{
std::mutex g_fx_mutex;
std::unordered_map<std::type_index, std::shared_ptr<void>> g_fx_map;
void clear()
{
std::lock_guard<std::mutex> lock(g_fx_mutex);
g_fx_map.clear();
}
}