summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-07-11 19:08:33 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-07-11 19:08:33 +0000
commit1025594a09085e291116ed4560a3225168b52f94 (patch)
tree8f07385464cbe3f373ded143fa09d66c092e72c2 /cpp/src
parenthttp://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=397 (diff)
downloadice-1025594a09085e291116ed4560a3225168b52f94.tar.bz2
ice-1025594a09085e291116ed4560a3225168b52f94.tar.xz
ice-1025594a09085e291116ed4560a3225168b52f94.zip
merged in HandleWrapper fix from IceE.
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/IceUtil/Thread.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/cpp/src/IceUtil/Thread.cpp b/cpp/src/IceUtil/Thread.cpp
index 1e1bea02ea8..9bba5a677d8 100644
--- a/cpp/src/IceUtil/Thread.cpp
+++ b/cpp/src/IceUtil/Thread.cpp
@@ -18,15 +18,8 @@ using namespace std;
IceUtil::ThreadControl::ThreadControl()
{
IceUtil::Mutex::Lock lock(_stateMutex);
- _handle = new HandleWrapper(0);
+ _handle = new HandleWrapper(GetCurrentThread(), false);
_id = GetCurrentThreadId();
- HANDLE proc = GetCurrentProcess();
- HANDLE current = GetCurrentThread();
- int rc = DuplicateHandle(proc, current, proc, &_handle->handle, SYNCHRONIZE, TRUE, 0);
- if(rc == 0)
- {
- throw ThreadSyscallException(__FILE__, __LINE__, GetLastError());
- }
}
IceUtil::ThreadControl::ThreadControl(const HandleWrapperPtr& handle, ThreadId id)