diff options
| author | nakst <> | 2021-08-22 21:24:56 +0100 |
|---|---|---|
| committer | nakst <> | 2021-08-22 21:24:56 +0100 |
| commit | b878be6f7998b9ec65716632cadc4c77f41309dc (patch) | |
| tree | 197871b9e49969c93ca22b420156ab36d6b64ec5 /src | |
| parent | 1f25f60a685d50a178b6d0bc571ca5c2f476a984 (diff) | |
Thread pool fix on Win32
Diffstat (limited to 'src')
| -rw-r--r-- | src/thread_pool.cpp | 6 |
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; }; |