Skip to content

Commit 94d1b9b

Browse files
committed
Merge pull request #2316 from alalek:core_tls_handle_thread_termination
2 parents 7899b49 + 3e4fb8f commit 94d1b9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/xfeatures2d/src/sift.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@
107107
#include <stdarg.h>
108108
#include <opencv2/core/hal/hal.hpp>
109109

110+
#include <opencv2/core/utils/tls.hpp>
111+
110112
namespace cv
111113
{
112114
namespace xfeatures2d
@@ -709,7 +711,7 @@ void SIFT_Impl::findScaleSpaceExtrema( const std::vector<Mat>& gauss_pyr, const
709711
const int threshold = cvFloor(0.5 * contrastThreshold / nOctaveLayers * 255 * SIFT_FIXPT_SCALE);
710712

711713
keypoints.clear();
712-
TLSData<std::vector<KeyPoint> > tls_kpts_struct;
714+
TLSDataAccumulator<std::vector<KeyPoint> > tls_kpts_struct;
713715

714716
for( int o = 0; o < nOctaves; o++ )
715717
for( int i = 1; i <= nOctaveLayers; i++ )

0 commit comments

Comments
 (0)