ソースを参照

Add mingw32 support for thread id

Samuel Thibault 13 年 前
コミット
cccf03c7a1
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  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