diff options
| author | 2015-01-05 05:48:36 -0200 | |
|---|---|---|
| committer | 2015-01-07 18:38:25 -0200 | |
| commit | 122c2bb3244c6d1d6bc37b27a7843ec680b228e6 (patch) | |
| tree | db06279f637317e67423f7d028bbda47457f3868 /src/core/hle/kernel/thread.cpp | |
| parent | Merge pull request #438 from lioncash/swp (diff) | |
| download | yuzu-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.cpp | 2 |
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: | |||
| 75 | static std::vector<Handle> thread_queue; | 75 | static std::vector<Handle> thread_queue; |
| 76 | 76 | ||
| 77 | // Lists only ready thread ids. | 77 | // Lists only ready thread ids. |
| 78 | static Common::ThreadQueueList<Handle> thread_ready_queue; | 78 | static Common::ThreadQueueList<Handle, THREADPRIO_LOWEST+1> thread_ready_queue; |
| 79 | 79 | ||
| 80 | static Handle current_thread_handle; | 80 | static Handle current_thread_handle; |
| 81 | static Thread* current_thread; | 81 | static Thread* current_thread; |