mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
Fixed Object Manager (detached)
This commit is contained in:
parent
9923f96431
commit
f8afee3325
6 changed files with 107 additions and 86 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue