summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-01-31 19:22:40 -0200
committerGravatar Yuri Kunde Schlesner2015-02-02 15:37:06 -0200
commit4e84df8be30c5bac65e4c4e9faf07bf0fc3fb33a (patch)
tree4e5ea0a4d5525843f41ad19530da872bc5ccda25 /src/core/hle/kernel/thread.cpp
parentHID: Fix crash when pressing a key when the emulator is stopped (diff)
downloadyuzu-4e84df8be30c5bac65e4c4e9faf07bf0fc3fb33a.tar.gz
yuzu-4e84df8be30c5bac65e4c4e9faf07bf0fc3fb33a.tar.xz
yuzu-4e84df8be30c5bac65e4c4e9faf07bf0fc3fb33a.zip
Mutex: Replace g_mutex_held_locks with a set inside Thread
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 2fae1b3bc..3c6669ca2 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -40,6 +40,9 @@ static Thread* current_thread;
40static const u32 INITIAL_THREAD_ID = 1; ///< The first available thread id at startup 40static const u32 INITIAL_THREAD_ID = 1; ///< The first available thread id at startup
41static u32 next_thread_id; ///< The next available thread id 41static u32 next_thread_id; ///< The next available thread id
42 42
43Thread::Thread() {
44}
45
43Thread* GetCurrentThread() { 46Thread* GetCurrentThread() {
44 return current_thread; 47 return current_thread;
45} 48}