ソースを参照

Thread pool fix on Win32

nakst 4 年 前
コミット
b878be6f79
1 ファイル変更5 行追加1 行削除
  1. 5 1
      src/thread_pool.cpp

+ 5 - 1
src/thread_pool.cpp

@@ -16,7 +16,11 @@ struct WorkerTask {
 };
 
 struct ThreadPool {
-	volatile i32 outstanding_task_count;
+#if defined(GB_SYSTEM_WINDOWS)
+	volatile LONG outstanding_task_count;
+#else
+	volatile isize outstanding_task_count;
+#endif
 	WorkerTask *next_task;
 	BlockingMutex task_list_mutex;
 };