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

Method Exists

preempt/src/xqueue/xqueue.cpp:73–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73XResult XQueueManager::Exists(XQueueHandle xq_h)
74{
75 std::lock_guard<std::mutex> lock(mtx_);
76 auto it = xqs_.find(xq_h);
77 if (it == xqs_.end()) return kXSchedErrorNotFound;
78 return kXSchedSuccess;
79}
80
81std::shared_ptr<XQueue> XQueueManager::Get(XQueueHandle xq_h)
82{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected