import "Semaphore"
#endif
+#if !defined(__EMSCRIPTEN__)
+
public enum ThreadPriority
{
normal = 0,
#if defined(__WIN32__)
return returnCode;
#else
- return (void *)returnCode;
+ return (void *)(uintptr_t)returnCode;
#endif
}
// printf("Creating %s thread\n", _class.name);
#if defined(__WIN32__)
if(!handle)
- handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ThreadCallBack, this, 0, &id);
+ {
+ DWORD tID;
+ handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ThreadCallBack, this, 0, &tID);
+ id = (uint)tID;
+ }
#else
{
int error;
property bool created { get { return started; } };
}
+
+#endif // !defined(__EMSCRIPTEN__)