Commit 7658c2e2 authored by rajithr's avatar rajithr

Fix for a potential data race condition

code changes to handle the failed build
parent 993e0b0b
...@@ -289,9 +289,9 @@ void* cv::workcycleObjectDetectorFunction(void* p) ...@@ -289,9 +289,9 @@ void* cv::workcycleObjectDetectorFunction(void* p)
((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->isObjectDetectingReady=false; ((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->isObjectDetectingReady=false;
((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->shouldObjectDetectingResultsBeForgot=false; ((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->shouldObjectDetectingResultsBeForgot=false;
#ifdef USE_STD_THREADS #ifdef USE_STD_THREADS
objectDetectorThreadStartStop.notify_one(); ((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->objectDetectorThreadStartStop.notify_one();
#else #else
pthread_cond_signal(&objectDetectorThreadStartStop); pthread_cond_signal(&(((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->objectDetectorThreadStartStop));
#endif #endif
((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->unlock(); ((cv::DetectionBasedTracker::SeparateDetectionWork*)p)->unlock();
} catch(...) { } catch(...) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment