mirror of
https://github.com/wiiu-env/launchiine.git
synced 2024-11-22 01:39:18 +01:00
Increase the maximum async element list and change the time to wait
This commit is contained in:
parent
b42b090442
commit
c71d820202
@ -21,7 +21,7 @@ AsyncExecutor::AsyncExecutor() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
instance->mutex.unlock();
|
instance->mutex.unlock();
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
std::this_thread::sleep_for(std::chrono::milliseconds(16));
|
||||||
DCFlushRange((void*)&exitThread, sizeof(exitThread));
|
DCFlushRange((void*)&exitThread, sizeof(exitThread));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -34,8 +34,8 @@ void AsyncExecutor::execute(std::function<void()> func) {
|
|||||||
instance = new AsyncExecutor();
|
instance = new AsyncExecutor();
|
||||||
}
|
}
|
||||||
|
|
||||||
while(instance->elements.size() > 10) {
|
while(instance->elements.size() > 25) {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
std::this_thread::sleep_for(std::chrono::milliseconds(16));
|
||||||
}
|
}
|
||||||
|
|
||||||
instance->mutex.lock();
|
instance->mutex.lock();
|
||||||
|
Loading…
Reference in New Issue
Block a user