aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/thread_pool.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/thread_pool.cpp b/src/thread_pool.cpp
index fa8e10049..7d162e702 100644
--- a/src/thread_pool.cpp
+++ b/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;
};