MCPcopy Create free account
hub / github.com/ElementsProject/elements / InitShutdownState

Function InitShutdownState

src/shutdown.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#endif
44
45bool InitShutdownState()
46{
47#ifndef WIN32
48 std::optional<TokenPipe> pipe = TokenPipe::Make();
49 if (!pipe) return false;
50 g_shutdown_r = pipe->TakeReadEnd();
51 g_shutdown_w = pipe->TakeWriteEnd();
52#endif
53 return true;
54}
55
56void StartShutdown()
57{

Callers 1

AppInitBasicSetupFunction · 0.85

Calls 2

TakeReadEndMethod · 0.80
TakeWriteEndMethod · 0.80

Tested by

no test coverage detected