mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-14 20:27:51 +00:00
Revert "core: Switch to unique_ptr for usage of Common::Fiber."
This commit is contained in:
parent
643c89399b
commit
845a217d5e
10 changed files with 59 additions and 58 deletions
|
@ -68,12 +68,12 @@ public:
|
|||
|
||||
void OnThreadStart();
|
||||
|
||||
[[nodiscard]] Common::Fiber* ControlContext() {
|
||||
return switch_fiber.get();
|
||||
[[nodiscard]] std::shared_ptr<Common::Fiber>& ControlContext() {
|
||||
return switch_fiber;
|
||||
}
|
||||
|
||||
[[nodiscard]] const Common::Fiber* ControlContext() const {
|
||||
return switch_fiber.get();
|
||||
[[nodiscard]] const std::shared_ptr<Common::Fiber>& ControlContext() const {
|
||||
return switch_fiber;
|
||||
}
|
||||
|
||||
[[nodiscard]] u64 UpdateHighestPriorityThread(KThread* highest_thread);
|
||||
|
@ -178,7 +178,7 @@ private:
|
|||
|
||||
KThread* idle_thread;
|
||||
|
||||
std::unique_ptr<Common::Fiber> switch_fiber{};
|
||||
std::shared_ptr<Common::Fiber> switch_fiber{};
|
||||
|
||||
struct SchedulingState {
|
||||
std::atomic<bool> needs_scheduling;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue