From 86ba74fe359cee0dc501b3d83eb90e29ec80c858 Mon Sep 17 00:00:00 2001 From: Delalande Ivan Date: Sun, 15 Jul 2012 00:07:53 +0200 Subject: [PATCH] Made the count filter print a thread_local integer. --- src/filterSample/count.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filterSample/count.cc b/src/filterSample/count.cc index f1cea02..84a2ff7 100644 --- a/src/filterSample/count.cc +++ b/src/filterSample/count.cc @@ -1,10 +1,11 @@ #include +#include #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)