@brief Enumerates all requests objects associated with this loop
| 1103 | |
| 1104 | /// @brief Enumerates all requests objects associated with this loop |
| 1105 | void 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 | |
| 1116 | void SC::AsyncEventLoop::setListeners(AsyncEventLoopListeners* listeners) { internal.listeners = listeners; } |
| 1117 |