Finally remove fxm from IdManager
This commit is contained in:
@@ -6,7 +6,6 @@ shared_mutex id_manager::g_mutex;
|
||||
|
||||
thread_local DECLARE(idm::g_id);
|
||||
DECLARE(idm::g_map);
|
||||
DECLARE(fxm::g_vec);
|
||||
|
||||
id_manager::id_map::pointer idm::allocate_id(const id_manager::id_key& info, u32 base, u32 step, u32 count)
|
||||
{
|
||||
@@ -68,19 +67,3 @@ void idm::clear()
|
||||
map.clear();
|
||||
}
|
||||
}
|
||||
|
||||
void fxm::init()
|
||||
{
|
||||
// Allocate
|
||||
g_vec.resize(id_manager::typeinfo::get_count());
|
||||
fxm::clear();
|
||||
}
|
||||
|
||||
void fxm::clear()
|
||||
{
|
||||
// Call recorded finalization functions for all IDs
|
||||
for (auto& val : g_vec)
|
||||
{
|
||||
val.reset();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user