Selaa lähdekoodia

Add mingw32 support for thread id

Samuel Thibault 12 vuotta sitten
vanhempi
commit
cccf03c7a1
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/common/fxt.c

+ 2 - 0
src/common/fxt.c

@@ -52,6 +52,8 @@ long _starpu_gettid()
 	long tid;
 	thr_self(&tid);
 	return tid;
+#elif defined(__MINGW32__)
+	return (long) GetCurrentThread();
 #else
 	return (long) pthread_self();
 #endif