MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / MakeProcessKey

Function MakeProcessKey

src/Pipe/PipeManager.cpp:19–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 std::unordered_map<ProcessKey, ProcessInspector::ProcessSnapshot, ProcessKeyHash> g_processes;
18
19 ProcessKey MakeProcessKey(const ProcessInspector::ProcessSnapshot& snapshot) {
20 return ProcessKey{snapshot.pid, snapshot.creationTime};
21 }
22
23 std::optional<ProcessInspector::ProcessSnapshot> TryReuseCachedProcess(PID_t pid) {
24 const auto currentCreationTime = ProcessInspector::GetProcessCreationTime(pid);

Callers 2

ResolveProcessFunction · 0.85
OnHandshakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected