diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-10-20 16:21:11 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-10-20 16:21:11 +0000 |
commit | 6cb72acd28e758df501d0ef0ece489889860e49f (patch) | |
tree | db3891db78db0ac03d1edfff5dc0a203be58fda9 /cpp/src/Ice/DLLMain.cpp | |
parent | Converted Windows build to use nmake (diff) | |
download | ice-6cb72acd28e758df501d0ef0ece489889860e49f.tar.bz2 ice-6cb72acd28e758df501d0ef0ece489889860e49f.tar.xz ice-6cb72acd28e758df501d0ef0ece489889860e49f.zip |
Implicit context: first cut
Diffstat (limited to 'cpp/src/Ice/DLLMain.cpp')
-rwxr-xr-x | cpp/src/Ice/DLLMain.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/Ice/DLLMain.cpp b/cpp/src/Ice/DLLMain.cpp index f446ec69583..510e2b7c1ec 100755 --- a/cpp/src/Ice/DLLMain.cpp +++ b/cpp/src/Ice/DLLMain.cpp @@ -8,6 +8,7 @@ // ********************************************************************** #include <Ice/EventLoggerI.h> +#include <Ice/ImplicitContextI.h> extern "C" BOOL WINAPI _CRT_INIT(HINSTANCE, DWORD, LPVOID); @@ -31,6 +32,10 @@ ice_DLL_Main(HINSTANCE hDLL, DWORD reason, LPVOID reserved) { Ice::EventLoggerI::setModuleHandle(hDLL); } + else if(reason == DLL_THREAD_DETACH) + { + Ice::ImplicitContextI::cleanupThread(); + } return TRUE; } |