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

Function XQueueQuery

preempt/src/xqueue/xqueue.cpp:355–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355EXPORT_C_FUNC XResult XQueueQuery(XQueueHandle xq, XQueueState *state)
356{
357 if (state == nullptr) return kXSchedErrorInvalidValue;
358 std::shared_ptr<XQueue> xq_shptr = XQueueManager::Get(xq);
359 if (xq_shptr == nullptr) {
360 XWARN("XQueue with handle 0x" FMT_64X " does not exist", xq);
361 return kXSchedErrorNotFound;
362 }
363 *state = xq_shptr->Query();
364 return kXSchedSuccess;
365}
366
367EXPORT_C_FUNC XResult XQueueSuspend(XQueueHandle xq, int64_t flags)
368{

Callers

nothing calls this directly

Calls 1

QueryMethod · 0.80

Tested by

no test coverage detected