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

Method QueryPolicy

service/cli/src/cli.cpp:114–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114int Cli::QueryPolicy()
115{
116 XPolicyType type;
117 XSCHED_ASSERT(client_->QueryPolicy(type));
118 std::cout << "Current policy: \n " << GetPolicyTypeName(type) << std::endl;
119 std::cout << "Available policies: " << std::endl;
120 for (int i = kPolicyUnknown + 1; i < kPolicyMax; i++) {
121 std::cout << " " << GetPolicyTypeName((XPolicyType)i) << std::endl;
122 }
123 return 0;
124}
125
126int Cli::SetPolicy(const std::string &policy_name)
127{

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected