Kernel: pass ref down to Object and wrap ID counter into kernel state

This commit is contained in:
Weiyi Wang 2018-10-13 17:24:51 -04:00
parent 87426b29ff
commit 751ebe55e9
18 changed files with 31 additions and 22 deletions

View file

@ -19,7 +19,7 @@ static CoreTiming::EventType* timer_callback_event_type = nullptr;
// us to simply use a pool index or similar.
static Kernel::HandleTable timer_callback_handle_table;
Timer::Timer(KernelSystem& kernel) {}
Timer::Timer(KernelSystem& kernel) : WaitObject(kernel) {}
Timer::~Timer() {}
SharedPtr<Timer> KernelSystem::CreateTimer(ResetType reset_type, std::string name) {