/* * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef TEST_PC_E2E_ANALYZER_VIDEO_MULTI_READER_QUEUE_H_ #define TEST_PC_E2E_ANALYZER_VIDEO_MULTI_READER_QUEUE_H_ #include <deque> #include <memory> #include <set> #include <unordered_map> #include "absl/types/optional.h" #include "rtc_base/checks.h" namespace webrtc { // Represents the queue which can be read by multiple readers. Each reader reads // from its own queue head. When an element is added it will become visible for // all readers. When an element will be removed by all the readers, the element // will be removed from the queue. template <typename T> class MultiReaderQueue { … }; } // namespace webrtc #endif // TEST_PC_E2E_ANALYZER_VIDEO_MULTI_READER_QUEUE_H_