MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / getInterestingProcess

Function getInterestingProcess

src/processrunner.cpp:194–212  ·  view source on GitHub ↗

gets the most interesting process in the list

Source from the content-addressed store, hash-verified

192// gets the most interesting process in the list
193//
194InterestingProcess getInterestingProcess(HANDLE job)
195{
196 env::Process root = env::getProcessTree(job);
197 if (root.children().empty()) {
198 log::debug("nothing to wait for");
199 return {};
200 }
201
202 dump(root);
203
204 auto interest = findInterestingProcessInTrees(root);
205 if (!interest.handle) {
206 // this can happen if none of the processes can be opened
207 log::debug("no interesting process to wait for");
208 return {};
209 }
210
211 return interest;
212}
213
214const std::chrono::milliseconds Infinite(-1);
215

Callers 1

Calls 5

getProcessTreeFunction · 0.85
dumpFunction · 0.85
childrenMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected