diff options
author | Liam <byteslice@airmail.cc> | 2022-12-17 14:34:03 -0500 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-17 16:26:24 -0500 |
commit | d3123079e887710580b622b444a642ae298ddec0 (patch) | |
tree | 2bad10cc78ddb74f851a572dc69704154ea63b69 /src/core/core.cpp | |
parent | 5da72a891fb4c4ddddbeefc0b235079fa3830743 (diff) |
EmuThread: refactor
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index a738f221ff..47292cd78f 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -183,26 +183,20 @@ struct System::Impl { Initialize(system); } - SystemResultStatus Run() { + void Run() { std::unique_lock<std::mutex> lk(suspend_guard); - status = SystemResultStatus::Success; kernel.Suspend(false); core_timing.SyncPause(false); is_paused.store(false, std::memory_order_relaxed); - - return status; } - SystemResultStatus Pause() { + void Pause() { std::unique_lock<std::mutex> lk(suspend_guard); - status = SystemResultStatus::Success; core_timing.SyncPause(true); kernel.Suspend(true); is_paused.store(true, std::memory_order_relaxed); - - return status; } bool IsPaused() const { @@ -553,12 +547,12 @@ void System::Initialize() { impl->Initialize(*this); } -SystemResultStatus System::Run() { - return impl->Run(); +void System::Run() { + impl->Run(); } -SystemResultStatus System::Pause() { - return impl->Pause(); +void System::Pause() { + impl->Pause(); } bool System::IsPaused() const { |