From 1fe509c0c26b31ee654dda17be99205362024f68 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Thu, 22 Sep 2005 14:01:13 +0000 Subject: Ported IceUtil to VS 2005 Beta 2 x64 --- cpp/src/IceUtil/Thread.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cpp/src/IceUtil/Thread.cpp') 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( + _beginthreadex(0, + static_cast(stackSize), + startHook, this, 0, &_id)); if(_handle->handle == 0) { -- cgit v1.2.3