13 #include <opencv2/core/utility.hpp> 47 void Push(
const T& entry) noexcept {
48 std::lock_guard<std::mutex> lock(
mtx);
52 static_cast<void>(
Pop(elem));
60 bool Pop(T& out) noexcept {
61 std::lock_guard<std::mutex> lock(
mtx);
82 std::lock_guard<std::mutex> lock(
mtx);
90 std::lock_guard<std::mutex> lock(
mtx);
91 while (!this->empty()) {
size_t const maxDepth
mutex for safe read/write access of/to queue internals
Definition: ThreadSafeFramesQueue.hpp:99
ThreadSafeFramesQueue(size_t const &_maxDepth)
Definition: ThreadSafeFramesQueue.hpp:38
std::mutex mtx
OpenCV timer class.
Definition: ThreadSafeFramesQueue.hpp:98
cv::TickMeter tm
Definition: ThreadSafeFramesQueue.hpp:97
thread-safe queue (FIFO) implementation (with timer)
Definition: ThreadSafeFramesQueue.hpp:24
double GetFPS() noexcept
Definition: ThreadSafeFramesQueue.hpp:81
void Clear() noexcept
Definition: ThreadSafeFramesQueue.hpp:89
ThreadSafeFramesQueue()
Definition: ThreadSafeFramesQueue.hpp:29
void Push(const T &entry) noexcept
Definition: ThreadSafeFramesQueue.hpp:47
bool Pop(T &out) noexcept
Definition: ThreadSafeFramesQueue.hpp:60