We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4623101 commit 08c094eCopy full SHA for 08c094e
src/Util/RingBuffer.h
@@ -433,6 +433,13 @@ class RingBuffer : public std::enable_shared_from_this<RingBuffer<T>> {
433
}
434
435
436
+ void flushGop(std::function<void(const T &)> cb) {
437
+ LOCK_GUARD(_mtx_map);
438
+ _storage->getCache().for_each([&](const List<std::pair<bool, T>> &lst) {
439
+ lst.for_each([&](const std::pair<bool, T> &pr) { cb(pr.second); });
440
+ });
441
+ }
442
+
443
void getInfoList(const onGetInfoCB &cb, const typename RingReaderDispatcher::onChangeInfoCB &on_change = nullptr) {
444
if (!cb) {
445
return;
0 commit comments