Changeset 7035
- Timestamp:
- 06/27/07 19:05:56
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenThreads/trunk/src/OpenThreads/win32/Win32Thread.cpp
r6584 r7035 19 19 #include <string> 20 20 #include <iostream> 21 #include <process.h> 21 22 22 23 #if defined(_MSC_VER) && (_MSC_VER < 1300) … … 88 89 // Win32Threads standard start routine. 89 90 // 90 static unsigned long__stdcall StartThread(void *data) {91 static unsigned int __stdcall StartThread(void *data) { 91 92 92 93 Thread *thread = static_cast<Thread *>(data); … … 319 320 // 2) if not than we're in trouble anyway - nothing is protected 320 321 // pd->stackSizeLocked = true; 321 unsigned longID;322 323 pd->tid.set( CreateThread(NULL,pd->stackSize,ThreadPrivateActions::StartThread,static_cast<void *>(this),0,&ID));322 unsigned int ID; 323 324 pd->tid.set( (void*)_beginthreadex(NULL,pd->stackSize,ThreadPrivateActions::StartThread,static_cast<void *>(this),0,&ID)); 324 325 325 326 pd->uniqueId = (int)ID;
