MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / WaitForRequests

Function WaitForRequests

Source/Tools/FEXServer/ProcessPipe.cpp:393–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void WaitForRequests() {
394 Reactor.enable_async_stop();
395
396 while (true) {
397 std::optional Timeout = std::chrono::seconds {RequestTimeout};
398 if (Foreground || NumClients > 0) {
399 Timeout.reset();
400 }
401 auto Result = Reactor.run_one(Timeout);
402 if (Result != fasio::error::success || Reactor.stopped()) {
403 Reactor.cleanup();
404 break;
405 }
406 }
407
408 LogMan::Msg::DFmt("[FEXServer] Shutting Down");
409
410 CloseConnections();
411}
412
413void SetConfiguration(bool Foreground, uint32_t PersistentTimeout) {
414 ProcessPipe::Foreground = Foreground;

Callers 1

mainFunction · 0.85

Calls 6

DFmtFunction · 0.85
CloseConnectionsFunction · 0.85
enable_async_stopMethod · 0.80
run_oneMethod · 0.80
stoppedMethod · 0.80
cleanupMethod · 0.80

Tested by

no test coverage detected