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

Method GetSchedulerPolicy

service/server/src/server.cpp:383–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void Server::GetSchedulerPolicy(const httplib::Request &, httplib::Response &res)
384{
385 XPolicyType type = scheduler_->GetPolicy();
386 Json::Value response(Json::objectValue);
387 response["policy"] = (Json::Int)type;
388 res.set_content(Json::writeString(json_writer_, response).c_str(), "application/json");
389}
390
391void Server::PostSchedulerPolicy(const httplib::Request &req, httplib::Response &res, const httplib::ContentReader &)
392{

Callers

nothing calls this directly

Calls 1

GetPolicyMethod · 0.80

Tested by

no test coverage detected