| 124 | } |
| 125 | |
| 126 | int 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 | |
| 135 | int Cli::SetPriority(XQueueHandle handle, Priority prio) |
| 136 | { |
no test coverage detected