diff options
author | Subv <subv2112@gmail.com> | 2014-12-04 20:59:56 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2014-12-04 20:59:56 +0100 |
commit | 6fac2bf0ab5fa51c6b2228d6fa64752793f38965 (patch) | |
tree | 15d9b8e8805d0e4f1e188955da77a95d4dc6bace | |
parent | Threads: Implemented a sequential thread id (diff) | |
download | yuzu-6fac2bf0ab5fa51c6b2228d6fa64752793f38965.tar yuzu-6fac2bf0ab5fa51c6b2228d6fa64752793f38965.tar.gz yuzu-6fac2bf0ab5fa51c6b2228d6fa64752793f38965.tar.bz2 yuzu-6fac2bf0ab5fa51c6b2228d6fa64752793f38965.tar.lz yuzu-6fac2bf0ab5fa51c6b2228d6fa64752793f38965.tar.xz yuzu-6fac2bf0ab5fa51c6b2228d6fa64752793f38965.tar.zst yuzu-6fac2bf0ab5fa51c6b2228d6fa64752793f38965.zip |
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index ccb927381..8d65dc84d 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -81,14 +81,6 @@ static Thread* current_thread; static const u32 INITIAL_THREAD_ID = 1; ///< The first available thread id at startup static u32 next_thread_id; ///< The next available thread id -/** - * Gets the next available thread id and increments it - * @return Next available thread id - */ -static u32 NextThreadId() { - return next_thread_id++; -} - /// Gets the current thread inline Thread* GetCurrentThread() { return current_thread; @@ -338,7 +330,7 @@ Thread* CreateThread(Handle& handle, const char* name, u32 entry_point, s32 prio thread_queue.push_back(handle); thread_ready_queue.prepare(priority); - thread->thread_id = NextThreadId(); + thread->thread_id = next_thread_id++; thread->status = THREADSTATUS_DORMANT; thread->entry_point = entry_point; thread->stack_top = stack_top; |