mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 05:45:46 +00:00
MemoryManager: Fix race conditions.
This commit is contained in:
parent
f606fa3515
commit
ff3cf7c1d9
2 changed files with 11 additions and 3 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <atomic>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
|
@ -215,6 +216,9 @@ private:
|
|||
|
||||
std::vector<u64> big_page_continuous;
|
||||
std::vector<std::pair<VAddr, std::size_t>> page_stash{};
|
||||
std::vector<std::pair<VAddr, std::size_t>> page_stash2{};
|
||||
|
||||
mutable std::mutex guard;
|
||||
|
||||
static constexpr size_t continuous_bits = 64;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue