Files
InstanceBrick--nightcap/include/runtime/process_launch_policy.h
T
2026-09-14 12:34:09 +03:00

17 lines
604 B
C++

#ifndef MOCKTAIL_RUNTIME_PROCESS_LAUNCH_POLICY_H_
#define MOCKTAIL_RUNTIME_PROCESS_LAUNCH_POLICY_H_
#include <string>
namespace mocktail::runtime {
// Call only for interactive launches, before creating any threads. Removes an
// inherited soft CPU limit when the hard limit is unlimited and demotes the
// calling thread from FIFO/RR scheduling. Returns diagnostics for the session
// log, including failures; never changes hard limits or signal dispositions.
std::string ApplyInteractiveProcessLaunchPolicy();
} // namespace mocktail::runtime
#endif // MOCKTAIL_RUNTIME_PROCESS_LAUNCH_POLICY_H_