Parcourir la source

Thread pool fix on Win32

nakst il y a 4 ans
Parent
commit
b878be6f79
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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;
 };