summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-02 11:54:20 -0400
committerGravatar Lioncash2018-08-02 11:54:23 -0400
commit9a50a4f2ccff24323f2fb34797df317c375700d6 (patch)
treee628d90cca99eefeaca24305008cb7aa9e857808 /src/core/hle/kernel/thread.cpp
parentMerge pull request #896 from lioncash/audio-out (diff)
downloadyuzu-9a50a4f2ccff24323f2fb34797df317c375700d6.tar.gz
yuzu-9a50a4f2ccff24323f2fb34797df317c375700d6.tar.xz
yuzu-9a50a4f2ccff24323f2fb34797df317c375700d6.zip
kernel/thread: Make GetFreeThreadLocalSlot() internally linked
This function isn't used outside of this translation unit, so we can make it internally linked.
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 93ea58a1e..e28e620d5 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -252,7 +252,7 @@ void Thread::ResumeFromWait() {
252 * slot: The index of the first free slot in the indicated page. 252 * slot: The index of the first free slot in the indicated page.
253 * alloc_needed: Whether there's a need to allocate a new TLS page (All pages are full). 253 * alloc_needed: Whether there's a need to allocate a new TLS page (All pages are full).
254 */ 254 */
255std::tuple<u32, u32, bool> GetFreeThreadLocalSlot(std::vector<std::bitset<8>>& tls_slots) { 255static std::tuple<u32, u32, bool> GetFreeThreadLocalSlot(std::vector<std::bitset<8>>& tls_slots) {
256 // Iterate over all the allocated pages, and try to find one where not all slots are used. 256 // Iterate over all the allocated pages, and try to find one where not all slots are used.
257 for (unsigned page = 0; page < tls_slots.size(); ++page) { 257 for (unsigned page = 0; page < tls_slots.size(); ++page) {
258 const auto& page_tls_slots = tls_slots[page]; 258 const auto& page_tls_slots = tls_slots[page];