summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-02 17:55:10 +0200
committerLioncash <mathew1800@gmail.com>2018-08-02 17:56:11 +0200
commitfac0e42b2feece80258b42d8e9f80f5bbd08e4b3 (patch)
treea46b7ab315cc86fa9ff6e8dd7f79f2f7a1bd00fd /src/core/hle/kernel
parentkernel/thread: Make GetFreeThreadLocalSlot() internally linked (diff)
downloadyuzu-fac0e42b2feece80258b42d8e9f80f5bbd08e4b3.tar
yuzu-fac0e42b2feece80258b42d8e9f80f5bbd08e4b3.tar.gz
yuzu-fac0e42b2feece80258b42d8e9f80f5bbd08e4b3.tar.bz2
yuzu-fac0e42b2feece80258b42d8e9f80f5bbd08e4b3.tar.lz
yuzu-fac0e42b2feece80258b42d8e9f80f5bbd08e4b3.tar.xz
yuzu-fac0e42b2feece80258b42d8e9f80f5bbd08e4b3.tar.zst
yuzu-fac0e42b2feece80258b42d8e9f80f5bbd08e4b3.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/thread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index e28e620d5..02bdca802 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -252,7 +252,8 @@ void Thread::ResumeFromWait() {
* slot: The index of the first free slot in the indicated page.
* alloc_needed: Whether there's a need to allocate a new TLS page (All pages are full).
*/
-static std::tuple<u32, u32, bool> GetFreeThreadLocalSlot(std::vector<std::bitset<8>>& tls_slots) {
+static std::tuple<u32, u32, bool> GetFreeThreadLocalSlot(
+ const std::vector<std::bitset<8>>& tls_slots) {
// Iterate over all the allocated pages, and try to find one where not all slots are used.
for (unsigned page = 0; page < tls_slots.size(); ++page) {
const auto& page_tls_slots = tls_slots[page];