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

@ -133,7 +133,7 @@ public:
case FileCommand::Close:
{
LOG_TRACE(Service_FS, "Close %s %s", GetTypeName().c_str(), GetName().c_str());
Kernel::g_object_pool.Destroy<File>(GetHandle());
Kernel::g_handle_table.Destroy<File>(GetHandle());
break;
}
@ -189,7 +189,7 @@ public:
case DirectoryCommand::Close:
{
LOG_TRACE(Service_FS, "Close %s %s", GetTypeName().c_str(), GetName().c_str());
Kernel::g_object_pool.Destroy<Directory>(GetHandle());
Kernel::g_handle_table.Destroy<Directory>(GetHandle());
break;
}
@ -283,7 +283,7 @@ ResultVal<Handle> OpenFileFromArchive(ArchiveHandle archive_handle, const FileSy
}
auto file = Common::make_unique<File>(std::move(backend), path);
Handle handle = Kernel::g_object_pool.Create(file.release());
Handle handle = Kernel::g_handle_table.Create(file.release());
return MakeResult<Handle>(handle);
}
@ -388,7 +388,7 @@ ResultVal<Handle> OpenDirectoryFromArchive(ArchiveHandle archive_handle, const F
}
auto directory = Common::make_unique<Directory>(std::move(backend), path);
Handle handle = Kernel::g_object_pool.Create(directory.release());
Handle handle = Kernel::g_handle_table.Create(directory.release());
return MakeResult<Handle>(handle);
}