From c73841500a7bf98f9f4006d25507b7b596257cbd Mon Sep 17 00:00:00 2001 From: bunnei Date: Fri, 17 Dec 2021 16:05:51 -0800 Subject: core: hle: Remove global HLE lock. - This was added early on as a hack to protect against some concurrency issues. - It's not clear that this serves any purpose anymore, and if it does, individual components should be fixed rather than using a global recursive mutex. --- src/core/hle/lock.h | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/core/hle/lock.h (limited to 'src/core/hle/lock.h') diff --git a/src/core/hle/lock.h b/src/core/hle/lock.h deleted file mode 100644 index 5c99fe996..000000000 --- a/src/core/hle/lock.h +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2017 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include - -namespace HLE { -/* - * Synchronizes access to the internal HLE kernel structures, it is acquired when a guest - * application thread performs a syscall. It should be acquired by any host threads that read or - * modify the HLE kernel state. Note: Any operation that directly or indirectly reads from or writes - * to the emulated memory is not protected by this mutex, and should be avoided in any threads other - * than the CPU thread. - */ -extern std::recursive_mutex g_hle_lock; -} // namespace HLE -- cgit v1.2.3