diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-09-22 14:01:13 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-09-22 14:01:13 +0000 |
commit | 1fe509c0c26b31ee654dda17be99205362024f68 (patch) | |
tree | f0248f6827bece2662cc4899071c52b289c6b85a /cpp/src/IceUtil/Thread.cpp | |
parent | Fix (diff) | |
download | ice-1fe509c0c26b31ee654dda17be99205362024f68.tar.bz2 ice-1fe509c0c26b31ee654dda17be99205362024f68.tar.xz ice-1fe509c0c26b31ee654dda17be99205362024f68.zip |
Ported IceUtil to VS 2005 Beta 2 x64
Diffstat (limited to 'cpp/src/IceUtil/Thread.cpp')
-rw-r--r-- | cpp/src/IceUtil/Thread.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cpp/src/IceUtil/Thread.cpp b/cpp/src/IceUtil/Thread.cpp index 38b113382a0..65e1886a7b8 100644 --- a/cpp/src/IceUtil/Thread.cpp +++ b/cpp/src/IceUtil/Thread.cpp @@ -168,8 +168,8 @@ IceUtil::Thread::id() const return _id; } -static void* -startHook(void* arg) +static unsigned int +WINAPI startHook(void* arg) { try { @@ -229,8 +229,11 @@ IceUtil::Thread::start(size_t stackSize) // __incRef(); - _handle->handle = (HANDLE)_beginthreadex( - 0, stackSize, (unsigned int (__stdcall*)(void*))startHook, (LPVOID)this, 0, &_id); + _handle->handle = + reinterpret_cast<HANDLE>( + _beginthreadex(0, + static_cast<unsigned int>(stackSize), + startHook, this, 0, &_id)); if(_handle->handle == 0) { |