diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-07 07:32:48 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-09-04 04:05:41 +0200 |
commit | 25a97e0139b9b13e25e7e12961d852290bb7137a (patch) | |
tree | 434596e7534334c693e6797879ebb4c32d7e2164 /src/core/cpu_manager.h | |
parent | Merge pull request #6900 from ameerj/attr-reorder (diff) | |
download | yuzu-25a97e0139b9b13e25e7e12961d852290bb7137a.tar yuzu-25a97e0139b9b13e25e7e12961d852290bb7137a.tar.gz yuzu-25a97e0139b9b13e25e7e12961d852290bb7137a.tar.bz2 yuzu-25a97e0139b9b13e25e7e12961d852290bb7137a.tar.lz yuzu-25a97e0139b9b13e25e7e12961d852290bb7137a.tar.xz yuzu-25a97e0139b9b13e25e7e12961d852290bb7137a.tar.zst yuzu-25a97e0139b9b13e25e7e12961d852290bb7137a.zip |
Diffstat (limited to 'src/core/cpu_manager.h')
-rw-r--r-- | src/core/cpu_manager.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/cpu_manager.h b/src/core/cpu_manager.h index 140263b09..9d92d4af0 100644 --- a/src/core/cpu_manager.h +++ b/src/core/cpu_manager.h @@ -78,9 +78,9 @@ private: void SingleCoreRunSuspendThread(); void SingleCorePause(bool paused); - static void ThreadStart(CpuManager& cpu_manager, std::size_t core); + static void ThreadStart(std::stop_token stop_token, CpuManager& cpu_manager, std::size_t core); - void RunThread(std::size_t core); + void RunThread(std::stop_token stop_token, std::size_t core); struct CoreData { std::shared_ptr<Common::Fiber> host_context; @@ -89,7 +89,7 @@ private: std::atomic<bool> is_running; std::atomic<bool> is_paused; std::atomic<bool> initialized; - std::unique_ptr<std::thread> host_thread; + std::jthread host_thread; }; std::atomic<bool> running_mode{}; |