1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

cmake: add DllMain() into each OpenCV DLL

to detect process termination after ExitProcess() call
This commit is contained in:
Alexander Alekhin
2018-10-10 13:53:46 +03:00
parent ad93ed720d
commit 70f2ee917e
3 changed files with 47 additions and 2 deletions
+3 -2
View File
@@ -308,8 +308,9 @@ TLSData<CoreTLSData>& getCoreTlsData();
#define CL_RUNTIME_EXPORT
#endif
extern bool __termination; // skip some cleanups, because process is terminating
// (for example, if ExitProcess() was already called)
extern CV_EXPORTS
bool __termination; // skip some cleanups, because process is terminating
// (for example, if ExitProcess() was already called)
cv::Mutex& getInitializationMutex();