aboutsummaryrefslogtreecommitdiff
path: root/src/thread_pool.cpp
diff options
context:
space:
mode:
authornakst <>2021-08-22 21:24:56 +0100
committernakst <>2021-08-22 21:24:56 +0100
commitb878be6f7998b9ec65716632cadc4c77f41309dc (patch)
tree197871b9e49969c93ca22b420156ab36d6b64ec5 /src/thread_pool.cpp
parent1f25f60a685d50a178b6d0bc571ca5c2f476a984 (diff)
Thread pool fix on Win32
Diffstat (limited to 'src/thread_pool.cpp')
-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;
};