瀏覽代碼

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