Download cmake/templates/dllmain.cpp.in from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/tgollogly/test/resolve/main/cmake/templates/dllmain.cpp.in
- Command line
-
hf download hf://tgollogly/test/cmake/templates/dllmain.cpp.in
-
curl -L -o dllmain.cpp.in https://huggingface.co/tgollogly/test/resolve/main/cmake/templates/dllmain.cpp.in
1.05 kB
| // This file is part of OpenCV project. | |
| // It is subject to the license terms in the LICENSE file found in the top-level directory | |
| // of this distribution and at http://opencv.org/license.html. | |
| namespace cv { | |
| extern __declspec(dllimport) bool __termination; // Details: #12750 | |
| } | |
| extern "C" | |
| BOOL WINAPI DllMain(DLL_MAIN_ARG0, DWORD fdwReason, LPVOID lpReserved); | |
| extern "C" | |
| BOOL WINAPI DllMain(DLL_MAIN_ARG0, DWORD fdwReason, LPVOID lpReserved) | |
| { | |
| if (fdwReason == DLL_THREAD_DETACH || fdwReason == DLL_PROCESS_DETACH) | |
| { | |
| if (lpReserved != NULL) // called after ExitProcess() call | |
| { | |
| //printf("OpenCV: terminating: " OPENCV_MODULE_S "\n"); | |
| cv::__termination = true; | |
| } | |
| } | |
| return TRUE; | |
| } | |