MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ActionServer

Method ActionServer

IntelPresentMon/PresentMonService/ActionServer.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 using namespace ipc;
15
16 ActionServer::ActionServer(Service* pSvc, PresentMon* pPmon, std::optional<std::string> pipeName)
17 {
18 // if we have a pipe name override, that indicates we don't need special permissions
19 auto sec = pipe::DuplexPipe::GetSecurityString(pipeName ?
20 pipe::SecurityMode::Child : pipe::SecurityMode::Service);
21 // construct (and start) the server
22 pImpl_ = std::make_shared<act::SymmetricActionServer<acts::ActionExecutionContext>>(
23 acts::ActionExecutionContext{ .pSvc = pSvc, .pPmon = pPmon },
24 pipeName.value_or(gid::defaultControlPipeName),
25 2, std::move(sec)
26 );
27 }
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected