Codechange: Replace custom thread code with C++11 thread objects.
We assume a conforming C++11 compiler environment that has a valid <thread>-header. Failure to run a real thread is handled gracefully.
This commit is contained in:
@@ -857,6 +857,7 @@ int openttd_main(int argc, char *argv[])
|
||||
VideoDriver::GetInstance()->MainLoop();
|
||||
|
||||
WaitTillSaved();
|
||||
WaitTillGeneratedWorld(); // Make sure any generate world threads have been joined.
|
||||
|
||||
/* only save config if we have to */
|
||||
if (save_config) {
|
||||
|
Reference in New Issue
Block a user