diff options
Diffstat (limited to 'src/common/fiber.cpp')
| -rw-r--r-- | src/common/fiber.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index 81b212e4b..f9aeb692a 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | // Copyright 2020 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project |
| 2 | // Licensed under GPLv2 or any later version | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | // Refer to the license.txt file included. | 3 | |
| 4 | #include <mutex> | ||
| 4 | 5 | ||
| 5 | #include "common/assert.h" | 6 | #include "common/assert.h" |
| 6 | #include "common/fiber.h" | 7 | #include "common/fiber.h" |
| 7 | #include "common/spin_lock.h" | ||
| 8 | #include "common/virtual_buffer.h" | 8 | #include "common/virtual_buffer.h" |
| 9 | 9 | ||
| 10 | #include <boost/context/detail/fcontext.hpp> | 10 | #include <boost/context/detail/fcontext.hpp> |
| @@ -19,7 +19,7 @@ struct Fiber::FiberImpl { | |||
| 19 | VirtualBuffer<u8> stack; | 19 | VirtualBuffer<u8> stack; |
| 20 | VirtualBuffer<u8> rewind_stack; | 20 | VirtualBuffer<u8> rewind_stack; |
| 21 | 21 | ||
| 22 | SpinLock guard{}; | 22 | std::mutex guard; |
| 23 | std::function<void(void*)> entry_point; | 23 | std::function<void(void*)> entry_point; |
| 24 | std::function<void(void*)> rewind_point; | 24 | std::function<void(void*)> rewind_point; |
| 25 | void* rewind_parameter{}; | 25 | void* rewind_parameter{}; |