thread-safe queue (FIFO) implementation (with timer)
More...
#include <ThreadSafeFramesQueue.hpp>
|
cv::TickMeter | tm |
|
std::mutex | mtx |
| OpenCV timer class. More...
|
|
size_t const | maxDepth |
| mutex for safe read/write access of/to queue internals More...
|
|
template<typename T>
class ThreadSafeFramesQueue< T >
thread-safe queue (FIFO) implementation (with timer)
- See also
- https://docs.opencv.org/3.4/d4/db9/samples_2dnn_2object_detection_8cpp-example.html#_a20c/c++ headers system headers project headers
generic thread-safe queue (FIFO) implementation (with timer)
- Template Parameters
-
◆ ThreadSafeFramesQueue() [1/2]
◆ ThreadSafeFramesQueue() [2/2]
Constructor taking max depth as argument
◆ Clear()
◆ GetFPS()
get average frames per second
- Note
- measured as frequency of interval between inserts (i.e. Push-es)
◆ Pop()
pop element from the front of the queue
if the queue is empty, just exit
get the first element, and remove it
stop the current timer
start the next timer
return true, indicating successful pop
◆ Push()
push element onto the end of the queue
remove elements that are too old
◆ maxDepth
mutex for safe read/write access of/to queue internals
◆ mtx
◆ tm
The documentation for this class was generated from the following file: