mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
stratosphere: use SdkMutex/SdkRecursiveMutex over Mutex
This commit is contained in:
parent
a4fe1bb5d8
commit
41ab4c2c68
70 changed files with 188 additions and 645 deletions
|
@ -21,17 +21,17 @@ namespace ams::sm::impl {
|
|||
namespace {
|
||||
|
||||
/* Globals. */
|
||||
constinit os::Mutex g_mitm_ack_session_mutex(true);
|
||||
constinit os::Mutex g_per_thread_session_mutex(true);
|
||||
constinit os::SdkRecursiveMutex g_mitm_ack_session_mutex;
|
||||
constinit os::SdkRecursiveMutex g_per_thread_session_mutex;
|
||||
|
||||
}
|
||||
|
||||
/* Utilities. */
|
||||
os::Mutex &GetMitmAcknowledgementSessionMutex() {
|
||||
os::SdkRecursiveMutex &GetMitmAcknowledgementSessionMutex() {
|
||||
return g_mitm_ack_session_mutex;
|
||||
}
|
||||
|
||||
os::Mutex &GetPerThreadSessionMutex() {
|
||||
os::SdkRecursiveMutex &GetPerThreadSessionMutex() {
|
||||
return g_per_thread_session_mutex;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue