adata->func = myFunc;
// then try to create a new thread
-
+ DWORD aThreadId = DWORD();
myThread = CreateThread ( NULL, WNTStackSize, WNTthread_func,
- adata, 0, &myThreadId );
+ adata, 0, &aThreadId );
+ myThreadId = aThreadId;
if ( myThread )
SetThreadPriority (myThread, myPriority);
else {
}
else
{
- myThreadId = myThread;
+ myThreadId = (Standard_ThreadId)myThread;
}
#endif
return myThread != 0;
#ifdef _WIN32
return GetCurrentThreadId();
#else
- return pthread_self();
+ return (Standard_ThreadId)pthread_self();
#endif
}