diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-04-16 00:05:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 00:05:04 +0200 |
commit | 34710065e84ccc3de4433b7dd0ffb569e14788b8 (patch) | |
tree | 5e96d11546befd9671dff252e8e9e8a693b0bd1a /src/common/fiber.cpp | |
parent | Merge pull request #8190 from Docteh/palswap (diff) | |
parent | core: hle: kernel: k_thread: Rework dummy thread waiting. (diff) | |
download | yuzu-34710065e84ccc3de4433b7dd0ffb569e14788b8.tar yuzu-34710065e84ccc3de4433b7dd0ffb569e14788b8.tar.gz yuzu-34710065e84ccc3de4433b7dd0ffb569e14788b8.tar.bz2 yuzu-34710065e84ccc3de4433b7dd0ffb569e14788b8.tar.lz yuzu-34710065e84ccc3de4433b7dd0ffb569e14788b8.tar.xz yuzu-34710065e84ccc3de4433b7dd0ffb569e14788b8.tar.zst yuzu-34710065e84ccc3de4433b7dd0ffb569e14788b8.zip |
Diffstat (limited to 'src/common/fiber.cpp')
-rw-r--r-- | src/common/fiber.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index 81b212e4b..177a74deb 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp @@ -2,9 +2,10 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <mutex> + #include "common/assert.h" #include "common/fiber.h" -#include "common/spin_lock.h" #include "common/virtual_buffer.h" #include <boost/context/detail/fcontext.hpp> @@ -19,7 +20,7 @@ struct Fiber::FiberImpl { VirtualBuffer<u8> stack; VirtualBuffer<u8> rewind_stack; - SpinLock guard{}; + std::mutex guard; std::function<void(void*)> entry_point; std::function<void(void*)> rewind_point; void* rewind_parameter{}; |