mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-15 09:30:06 +00:00
kernel/thread: Make GetFreeThreadLocalSlot() internally linked
This function isn't used outside of this translation unit, so we can make it internally linked.
This commit is contained in:
parent
5e658efdb8
commit
c71c9e63ec
@ -286,7 +286,7 @@ static void DebugThreadQueue() {
|
|||||||
* slot: The index of the first free slot in the indicated page.
|
* 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).
|
* 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.
|
// 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) {
|
for (unsigned page = 0; page < tls_slots.size(); ++page) {
|
||||||
const auto& page_tls_slots = tls_slots[page];
|
const auto& page_tls_slots = tls_slots[page];
|
||||||
|
Loading…
Reference in New Issue
Block a user