1
0

rewrote queue not to use promises for waits

This commit is contained in:
Tycho Bickerstaff
2014-01-02 12:32:55 +00:00
parent 7694a0788c
commit 042b72bc17
6 changed files with 24 additions and 121 deletions

View File

@@ -367,10 +367,13 @@ void cWorld::InitializeSpawn(void)
cWorldLoadProgress Progress(this);
// Wait for the loader to finish loading
m_Storage.WaitForQueuesEmpty();
m_Storage.WaitForLoadQueueEmpty();
// Wait for the generator to finish generating
m_Generator.WaitForQueueEmpty();
// Wait for the loader to finish saving
m_Storage.WaitForSaveQueueEmpty();
Progress.Stop();
}