Explorar o código

Use GetCurrentThreadId instead of GetCurrentThread since the latter only returns a pseudo-handle.

Samuel Thibault %!s(int64=13) %!d(string=hai) anos
pai
achega
aecf2f8304
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/fxt.c

+ 1 - 1
src/common/fxt.c

@@ -53,7 +53,7 @@ long _starpu_gettid()
 	thr_self(&tid);
 	return tid;
 #elif defined(__MINGW32__)
-	return (long) GetCurrentThread();
+	return (long) GetCurrentThreadId();
 #else
 	return (long) pthread_self();
 #endif