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

Function XQueueWaitAll

preempt/src/xqueue/xqueue.cpp:344–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344EXPORT_C_FUNC XResult XQueueWaitAll(XQueueHandle xq)
345{
346 std::shared_ptr<XQueue> xq_shptr = XQueueManager::Get(xq);
347 if (xq_shptr == nullptr) {
348 XWARN("XQueue with handle 0x" FMT_64X " does not exist", xq);
349 return kXSchedErrorNotFound;
350 }
351 xq_shptr->WaitAll();
352 return kXSchedSuccess;
353}
354
355EXPORT_C_FUNC XResult XQueueQuery(XQueueHandle xq, XQueueState *state)
356{

Callers 2

runFunction · 0.85
RunMethod · 0.85

Calls 1

WaitAllMethod · 0.80

Tested by 1

RunMethod · 0.68