Kernel: Remove global system accessor from WaitObject

This commit is contained in:
Fernando Sahmkow 2019-09-11 12:47:37 -04:00 committed by FernandoS27
parent 0cf26cee59
commit e05a8c2385
4 changed files with 17 additions and 2 deletions

View file

@ -229,6 +229,14 @@ const Kernel::GlobalScheduler& KernelCore::GlobalScheduler() const {
return impl->global_scheduler;
}
Core::System& KernelCore::System() {
return impl->system;
}
const Core::System& KernelCore::System() const {
return impl->system;
}
void KernelCore::AddNamedPort(std::string name, SharedPtr<ClientPort> port) {
impl->named_ports.emplace(std::move(name), std::move(port));
}