hle: kernel: Use std::mutex instead of spin locks for most kernel locking.
This commit is contained in:
parent
fd5e1e80da
commit
8deaac8bd1
10 changed files with 23 additions and 32 deletions
|
@ -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{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue