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

Method ForEach

preempt/src/xqueue/xqueue.cpp:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103XResult XQueueManager::ForEach(std::function<XResult(std::shared_ptr<XQueue>)> func)
104{
105 std::lock_guard<std::mutex> lock(mtx_);
106 for (auto it : xqs_) {
107 XResult res = func(it.second);
108 if (res != kXSchedSuccess) return res;
109 }
110 return kXSchedSuccess;
111}
112
113XResult XQueueManager::AutoCreate(std::function<XResult(HwQueueHandle *)> create_hwq)
114{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected