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

Method SetPolicy

service/common/src/client.cpp:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93XResult Client::SetPolicy(XPolicyType policy)
94{
95 Json::Value response;
96 std::string url = "/policy?policy=" + std::to_string((int)policy);
97 return GetResponse(http_client_->Post(url), response);
98}
99
100XResult Client::SetPriority(XQueueHandle handle, Priority prio)
101{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected