Lifecycle management of threads #29

Merged
harraiken merged 240 commits from threads into master 2026-09-07 13:45:09 +02:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 0a66c8a3a3 - Show all commits

View File

@@ -1285,6 +1285,10 @@ OB::LifeCycle::InitializeObjectLifeCycle(VOID)
/* Clear tracking pointer */
RemoveObjectList = NULLPTR;
/* Create the kernel handle table and attach it to the current process */
KernelHandleTable = OB::HandleTable::CreateHandleTable(NULLPTR);
PS::Process::GetCurrentProcess()->ObjectTable = KernelHandleTable;
/* Initialize deferred removal work item */
EX::WorkItem::InitializeWorkItem(&RemoveObjectWorkItem, ProcessDeferredDeletionQueue, NULLPTR);
}

View File

@@ -78,9 +78,13 @@ OB::Manager::InitializeObjectManager(VOID)
/* Initialize system lookaside list for BSP */
InitializeSystemLookasideList();
/* Initialize handle table support */
OB::HandleTable::InitializeHandleTable();
/* Initialize device map support */
OB::DeviceMap::InitializeDeviceMap();
/* Initialize object life cycle support */
OB::LifeCycle::InitializeObjectLifeCycle();
/* Initialize object type registry */