Use a SpinLock for guest shader code cache trap mutex

This commit is contained in:
Billy Laws 2022-09-29 21:40:48 +01:00
parent 3e12cde4d5
commit 5542459c75

View File

@ -87,7 +87,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
engine::Pipeline::Shader::Type shaderType;
tsl::robin_map<u8 *, std::unique_ptr<MirrorEntry>> mirrorMap;
std::mutex trapMutex; //!< Protects accesses from trap handlers to the mirror map
SpinLock trapMutex; //!< Protects accesses from trap handlers to the mirror map
MirrorEntry *entry{};
span<u8> mirrorBlock{}; //!< Guest mapped memory block corresponding to `entry`