MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / StartGameThread

Method StartGameThread

src/video/video_driver.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void 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
97void VideoDriver::StopGameThread()
98{

Callers 3

MainLoopMethod · 0.80
MainLoopMethod · 0.80
MainLoopMethod · 0.80

Calls 1

StartNewThreadFunction · 0.85

Tested by

no test coverage detected