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

Function XQueueSuspend

preempt/src/xqueue/xqueue.cpp:367–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367EXPORT_C_FUNC XResult XQueueSuspend(XQueueHandle xq, int64_t flags)
368{
369 std::shared_ptr<XQueue> xq_shptr = XQueueManager::Get(xq);
370 if (xq_shptr == nullptr) {
371 XWARN("XQueue with handle 0x" FMT_64X " does not exist", xq);
372 return kXSchedErrorNotFound;
373 }
374 xq_shptr->Suspend(flags);
375 return kXSchedSuccess;
376}
377
378EXPORT_C_FUNC XResult XQueueResume(XQueueHandle xq, int64_t flags)
379{

Callers 2

runFunction · 0.85
runFunction · 0.85

Calls 1

SuspendMethod · 0.45

Tested by

no test coverage detected