summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-01-05 05:48:36 -0200
committerGravatar Yuri Kunde Schlesner2015-01-07 18:38:25 -0200
commit122c2bb3244c6d1d6bc37b27a7843ec680b228e6 (patch)
treedb06279f637317e67423f7d028bbda47457f3868 /src/core/hle/kernel/thread.cpp
parentMerge pull request #438 from lioncash/swp (diff)
downloadyuzu-122c2bb3244c6d1d6bc37b27a7843ec680b228e6.tar.gz
yuzu-122c2bb3244c6d1d6bc37b27a7843ec680b228e6.tar.xz
yuzu-122c2bb3244c6d1d6bc37b27a7843ec680b228e6.zip
Common: Clean up ThreadQueueList
Replace all the C-style complicated buffer management with a std::deque. In addition to making the code easier to understand it also adds support for non-POD IdTypes. Also clean the rest of the code to follow our code style.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 872df2d14..d76451146 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -75,7 +75,7 @@ public:
75static std::vector<Handle> thread_queue; 75static std::vector<Handle> thread_queue;
76 76
77// Lists only ready thread ids. 77// Lists only ready thread ids.
78static Common::ThreadQueueList<Handle> thread_ready_queue; 78static Common::ThreadQueueList<Handle, THREADPRIO_LOWEST+1> thread_ready_queue;
79 79
80static Handle current_thread_handle; 80static Handle current_thread_handle;
81static Thread* current_thread; 81static Thread* current_thread;