summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/DLLMain.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-10-20 16:21:11 +0000
committerBernard Normier <bernard@zeroc.com>2006-10-20 16:21:11 +0000
commit6cb72acd28e758df501d0ef0ece489889860e49f (patch)
treedb3891db78db0ac03d1edfff5dc0a203be58fda9 /cpp/src/Ice/DLLMain.cpp
parentConverted Windows build to use nmake (diff)
downloadice-6cb72acd28e758df501d0ef0ece489889860e49f.tar.bz2
ice-6cb72acd28e758df501d0ef0ece489889860e49f.tar.xz
ice-6cb72acd28e758df501d0ef0ece489889860e49f.zip
Implicit context: first cut
Diffstat (limited to 'cpp/src/Ice/DLLMain.cpp')
-rwxr-xr-xcpp/src/Ice/DLLMain.cpp5
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;
}