mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-15 23:17:52 +00:00
hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.
This commit is contained in:
parent
2cb4c9d7b2
commit
715978756e
11 changed files with 53 additions and 59 deletions
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
/// Returns true if the scheduler is idle
|
||||
[[nodiscard]] bool IsIdle() const {
|
||||
return GetCurrentThread() == idle_thread.get();
|
||||
return GetCurrentThread() == idle_thread;
|
||||
}
|
||||
|
||||
/// Gets the timestamp for the last context switch in ticks.
|
||||
|
@ -173,7 +173,7 @@ private:
|
|||
KThread* prev_thread{};
|
||||
std::atomic<KThread*> current_thread{};
|
||||
|
||||
std::unique_ptr<KThread> idle_thread;
|
||||
KThread* idle_thread{};
|
||||
|
||||
std::shared_ptr<Common::Fiber> switch_fiber{};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue