Made the count filter print a thread_local integer.
This commit is contained in:
parent
2950deef1a
commit
86ba74fe35
@ -1,10 +1,11 @@
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include "count.hh"
|
||||
#include "opencv2/opencv.hpp"
|
||||
|
||||
void* Count::operator()(void* para)
|
||||
{
|
||||
static int count = 1;
|
||||
static __thread int count = 1;
|
||||
cv::Mat* mat = (cv::Mat*)para;
|
||||
|
||||
if (mat == nullptr)
|
||||
|
Reference in New Issue
Block a user