Fix for a potential data race condition
code changes to handle the failed build
This commit is contained in:
parent
993e0b0bf9
commit
7658c2e2d5
@ -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(...) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user