MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DedicatedServerLoop

Function DedicatedServerLoop

engine/Poseidon/Core/Server/ServerLoop.cpp:121–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119{
120
121void DedicatedServerLoop()
122{
123 while (true)
124 {
125 AppServerLoop();
126
127 if (GApp->m_validateQuit)
128 {
129 DDTerm();
130 if (ENGINE_CONFIG.hideCursor)
131 {
132 SDL_ShowCursor();
133 }
134 int ret = 0;
135 LOG_DEBUG(Core, "Exit {}", ret);
136 Sleep(500);
137 exit(ret);
138 }
139 Sleep(1); // yield
140 }
141}
142} // namespace Poseidon

Callers 1

RunMainLoopMethod · 0.85

Calls 2

AppServerLoopFunction · 0.85
DDTermFunction · 0.85

Tested by

no test coverage detected