This commit is contained in:
altalk23 2022-12-13 20:44:56 +03:00 committed by HJfod
parent f42fdfcf55
commit 962dca6ab2
2 changed files with 4 additions and 0 deletions

View file

@ -358,6 +358,7 @@ void Loader::Impl::refreshModsList() {
// UI can be loaded now
m_earlyLoadFinished = true;
m_earlyLoadFinishedCV.notify_all();
// load the rest of the mods
for (auto& mod : m_modsToLoad) {
@ -379,6 +380,7 @@ void Loader::Impl::updateAllDependencies() {
void Loader::Impl::waitForModsToBeLoaded() {
auto lock = std::unique_lock(m_earlyLoadFinishedMutex);
log::debug("Waiting for mods to be loaded... {}", bool(m_earlyLoadFinished));
m_earlyLoadFinishedCV.wait(lock, [this] {
return bool(m_earlyLoadFinished);
});

View file

@ -329,10 +329,12 @@ void SentAsyncWebRequest::Impl::cancel() {
void SentAsyncWebRequest::Impl::pause() {
m_paused = true;
m_statusCV.notify_all();
}
void SentAsyncWebRequest::Impl::resume() {
m_paused = false;
m_statusCV.notify_all();
}
bool SentAsyncWebRequest::Impl::finished() const {