| 86 | } |
| 87 | |
| 88 | void VideoDriver::StartGameThread() |
| 89 | { |
| 90 | if (this->is_game_threaded) { |
| 91 | this->is_game_threaded = StartNewThread(&this->game_thread, "ottd:game", &VideoDriver::GameThreadThunk, this); |
| 92 | } |
| 93 | |
| 94 | Debug(driver, 1, "using {}thread for game-loop", this->is_game_threaded ? "" : "no "); |
| 95 | } |
| 96 | |
| 97 | void VideoDriver::StopGameThread() |
| 98 | { |
no test coverage detected