瀏覽代碼

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;
 };