Skip to content
Snippets Groups Projects
Commit 9a50a4f2 authored by Lioncash's avatar Lioncash
Browse files

kernel/thread: Make GetFreeThreadLocalSlot() internally linked

This function isn't used outside of this translation unit, so we can
make it internally linked.
parent a03c644a
No related branches found
No related tags found
No related merge requests found
......@@ -252,7 +252,7 @@ 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).
*/
std::tuple<u32, u32, bool> GetFreeThreadLocalSlot(std::vector<std::bitset<8>>& tls_slots) {
static std::tuple<u32, u32, bool> GetFreeThreadLocalSlot(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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment