Apply just the changes from the MLT branch which aren't really part of that work (#3793)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user