From b878be6f7998b9ec65716632cadc4c77f41309dc Mon Sep 17 00:00:00 2001 From: nakst <> Date: Sun, 22 Aug 2021 21:24:56 +0100 Subject: [PATCH] Thread pool fix on Win32 --- src/thread_pool.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; };