Browse Source

Add mingw32 support for thread id

Samuel Thibault 12 years ago
parent
commit
cccf03c7a1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/common/fxt.c

+ 2 - 0
src/common/fxt.c

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