MCPcopy Create free account
hub / github.com/XpuOS/xsched / SetPolicy

Method SetPolicy

service/cli/src/cli.cpp:126–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126int Cli::SetPolicy(const std::string &policy_name)
127{
128 XPolicyType type = GetPolicyType(policy_name);
129 if (type == kPolicyUnknown) XERRO("invalid policy name: %s", policy_name.c_str());
130 XSCHED_ASSERT(client_->SetPolicy(type));
131 std::cout << "Policy set to " << policy_name << std::endl;
132 return 0;
133}
134
135int Cli::SetPriority(XQueueHandle handle, Priority prio)
136{

Callers 3

mainFunction · 0.45
PostSchedulerPolicyMethod · 0.45
ReplaceSchedulerMethod · 0.45

Calls 1

GetPolicyTypeFunction · 0.85

Tested by

no test coverage detected