Apply just the changes from the MLT branch which aren't really part of that work (#3793)

This commit is contained in:
Tim Sylvester
2025-09-11 16:39:58 -07:00
committed by GitHub
parent 921251b973
commit bc025fca49
44 changed files with 181 additions and 123 deletions

View File

@@ -26,7 +26,7 @@ void Scheduler::SetCurrent(Scheduler* scheduler) {
Scheduler* Scheduler::GetCurrent(bool init) {
if (!localScheduler && init) {
thread_local util::RunLoop runLoop;
static thread_local util::RunLoop runLoop;
SetCurrent(&runLoop);
}
return localScheduler;