mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-29 02:45:38 -05:00
fix cvs
This commit is contained in:
parent
f42fdfcf55
commit
962dca6ab2
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue