mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 16:28:20 -05:00
Rename ObjectPool to HandleTable
This commit is contained in:
@ -54,7 +54,7 @@ public:
|
||||
|
||||
/// Allocates a new handle for the service
|
||||
Handle CreateHandle(Kernel::Object *obj) {
|
||||
Handle handle = Kernel::g_object_pool.Create(obj);
|
||||
Handle handle = Kernel::g_handle_table.Create(obj);
|
||||
m_handles.push_back(handle);
|
||||
return handle;
|
||||
}
|
||||
@ -62,7 +62,7 @@ public:
|
||||
/// Frees a handle from the service
|
||||
template <class T>
|
||||
void DeleteHandle(const Handle handle) {
|
||||
Kernel::g_object_pool.Destroy<T>(handle);
|
||||
Kernel::g_handle_table.Destroy<T>(handle);
|
||||
m_handles.erase(std::remove(m_handles.begin(), m_handles.end(), handle), m_handles.end());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user