mirror of
https://github.com/InstanceBrick/nightcap.git
synced 2026-10-17 23:00:46 +02:00
17 lines
604 B
C++
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_
|