summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-12-20 16:36:01 -0500
committerGravatar bunnei2014-12-20 16:36:01 -0500
commit2e5869c9395c2304cfc43a28bf734c345f845b65 (patch)
tree0c382725b245a82d9e0569deab332a64477fe438 /src/core/hle/kernel/thread.cpp
parentMerge pull request #296 from lioncash/dyn (diff)
parentKernel: Implement support for current thread pseudo-handle (diff)
downloadyuzu-2e5869c9395c2304cfc43a28bf734c345f845b65.tar.gz
yuzu-2e5869c9395c2304cfc43a28bf734c345f845b65.tar.xz
yuzu-2e5869c9395c2304cfc43a28bf734c345f845b65.zip
Merge pull request #316 from yuriks/thread-handle
Kernel: Implement support for current thread pseudo-handle
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 1c04701de..47be22653 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -83,8 +83,7 @@ static Thread* current_thread;
83static const u32 INITIAL_THREAD_ID = 1; ///< The first available thread id at startup 83static const u32 INITIAL_THREAD_ID = 1; ///< The first available thread id at startup
84static u32 next_thread_id; ///< The next available thread id 84static u32 next_thread_id; ///< The next available thread id
85 85
86/// Gets the current thread 86Thread* GetCurrentThread() {
87inline Thread* GetCurrentThread() {
88 return current_thread; 87 return current_thread;
89} 88}
90 89