Is it thread safe?

asked 2015-11-27 13:29:30 -0600

qwell42 gravatar image

updated 2015-12-07 06:34:44 -0600

In the file modules\core\src\system.cpp there is this peace of code:

TLSData<CoreTLSData>& getCoreTlsData()
{
    static TLSData<CoreTLSData> *value = new TLSData<CoreTLSData>();
    return *value;
}

I am using Visual Studio 2013 and getting hard to reproduce crashes.

edit retag flag offensive close merge delete

Comments

Please add more information !

  • What OpenCV functions did you use ?
  • What you want to achieve with OpenCV (contour detection, optical flow, ...) ?
  • What version of OpenCV did you use + your environment ?
  • Finally, the most important, post the minimal source code that reproduces the crashes.
Eduardo gravatar imageEduardo ( 2015-11-28 05:31:18 -0600 )edit

getting hard to reproduce crashes - which crashes? How do they occur? What is the error generated? ... please update your question according to the suggestions of @Eduardo!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-12-04 04:58:42 -0600 )edit
2