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

Method SetUtilization

service/common/src/client.cpp:129–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129XResult Client::SetUtilization(XQueueHandle handle, Utilization util)
130{
131 Json::Value request;
132 request["hint_type"] = (Json::Int)kHintTypeUtilization;
133 request["pid"] = (Json::Int)0;
134 request["handle"] = (Json::UInt64)handle;
135 request["utilization"] = (Json::Int)util;
136 return SendHint(request);
137}
138
139XResult Client::SetProcessUtilization(PID pid, Utilization util)
140{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected