Wait for pause

Tidy up
Remove red fill
This commit is contained in:
Leith Bade
2014-11-09 23:52:34 +11:00
parent 3696e05193
commit 1e55c332cd
4 changed files with 47 additions and 65 deletions

View File

@@ -178,9 +178,12 @@ private:
private:
bool terminating = false;
bool pausing = false;
bool is_paused = false;
std::unique_ptr<uv::mutex> mutex_run;
std::unique_ptr<uv::cond> cond_run;
std::unique_ptr<uv::mutex> mutex_pause;
std::unique_ptr<uv::cond> cond_resume;
std::unique_ptr<uv::cond> cond_pause;
private:
// If cleared, the next time the render thread attempts to render the map, it will *actually*