Made the count filter print a thread_local integer.

This commit is contained in:
Delalande Ivan 2012-07-15 00:07:53 +02:00
parent 2950deef1a
commit 86ba74fe35

View File

@ -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)