MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / enumerateRequests

Method enumerateRequests

Libraries/Async/Async.cpp:1105–1114  ·  view source on GitHub ↗

@brief Enumerates all requests objects associated with this loop

Source from the content-addressed store, hash-verified

1103
1104/// @brief Enumerates all requests objects associated with this loop
1105void SC::AsyncEventLoop::enumerateRequests(Function<void(AsyncRequest&)> enumerationCallback)
1106{
1107 // Cancelling requests are intentionally not part of the portable enumeration contract.
1108 internal.enumerateRequests(internal.submissions, enumerationCallback);
1109 auto enumerateActiveList = [this, &enumerationCallback](auto& linkedList)
1110 { internal.enumerateRequests(linkedList, enumerationCallback); };
1111 internal.forEachActiveRequestList(enumerateActiveList);
1112 internal.enumerateSequenceRequests(enumerationCallback);
1113 internal.enumerateRequests(internal.manualCompletions, enumerationCallback);
1114}
1115
1116void SC::AsyncEventLoop::setListeners(AsyncEventLoopListeners* listeners) { internal.listeners = listeners; }
1117

Calls 2