From 7658c2e2d5a3b15fb4d87ef85c00b84edc5ef175 Mon Sep 17 00:00:00 2001 From: rajithr Date: Wed, 27 May 2015 15:12:04 +0530 Subject: [PATCH] Fix for a potential data race condition code changes to handle the failed build --- modules/objdetect/src/detection_based_tracker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/objdetect/src/detection_based_tracker.cpp b/modules/objdetect/src/detection_based_tracker.cpp index 5f1c53c500..040784bc23 100644 --- a/modules/objdetect/src/detection_based_tracker.cpp +++ b/modules/objdetect/src/detection_based_tracker.cpp @@ -289,9 +289,9 @@ void* cv::workcycleObjectDetectorFunction(void* p) ((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->isObjectDetectingReady=false; ((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->shouldObjectDetectingResultsBeForgot=false; #ifdef USE_STD_THREADS - objectDetectorThreadStartStop.notify_one(); + ((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->objectDetectorThreadStartStop.notify_one(); #else - pthread_cond_signal(&objectDetectorThreadStartStop); + pthread_cond_signal(&(((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->objectDetectorThreadStartStop)); #endif ((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->unlock(); } catch(...) {