diff options
| author | 2015-01-31 19:22:40 -0200 | |
|---|---|---|
| committer | 2015-02-02 15:37:06 -0200 | |
| commit | 4e84df8be30c5bac65e4c4e9faf07bf0fc3fb33a (patch) | |
| tree | 4e5ea0a4d5525843f41ad19530da872bc5ccda25 /src/core/hle/kernel/thread.cpp | |
| parent | HID: Fix crash when pressing a key when the emulator is stopped (diff) | |
| download | yuzu-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.cpp | 3 |
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; | |||
| 40 | static const u32 INITIAL_THREAD_ID = 1; ///< The first available thread id at startup | 40 | static const u32 INITIAL_THREAD_ID = 1; ///< The first available thread id at startup |
| 41 | static u32 next_thread_id; ///< The next available thread id | 41 | static u32 next_thread_id; ///< The next available thread id |
| 42 | 42 | ||
| 43 | Thread::Thread() { | ||
| 44 | } | ||
| 45 | |||
| 43 | Thread* GetCurrentThread() { | 46 | Thread* GetCurrentThread() { |
| 44 | return current_thread; | 47 | return current_thread; |
| 45 | } | 48 | } |