mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
core(TLS): force TlsAbstraction initialization before main()
This commit is contained in:
@@ -1834,6 +1834,12 @@ static void WINAPI opencv_fls_destructor(void* pData)
|
||||
#endif // CV_USE_FLS
|
||||
#endif // _WIN32
|
||||
|
||||
static TlsAbstraction* const g_force_initialization_of_TlsAbstraction
|
||||
#if defined __GNUC__
|
||||
__attribute__((unused))
|
||||
#endif
|
||||
= getTlsAbstraction();
|
||||
|
||||
} // namespace details
|
||||
using namespace details;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user