Rename ObjectPool to HandleTable

This commit is contained in:
Yuri Kunde Schlesner
2014-12-13 21:16:13 -02:00
parent 28e64806cd
commit 73fba22c01
12 changed files with 54 additions and 54 deletions

View File

@ -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());
}