From 5a7b4a65a1d93744e4a5e6cc6df4244f61b81f68 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 14 Jan 2025 18:17:54 -0500 Subject: chore: fix compiler warnings + extra includes --- src/thread-pool.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/thread-pool.cpp') diff --git a/src/thread-pool.cpp b/src/thread-pool.cpp index 061ae68..b6ff97e 100644 --- a/src/thread-pool.cpp +++ b/src/thread-pool.cpp @@ -2,6 +2,7 @@ #include "thread-pool.hpp" #include "bucketed-array.hpp" +#include "dynamic-array.hpp" #include #include @@ -106,8 +107,8 @@ void inline PkeThreads_Pause_Inner(ThreadPool &tp) { void inline PkeThreads_Resume_Inner(ThreadPool &tp) { tp.mutex.lock(); tp.isPaused = false; - long count = tp.threads->Count(); - for (size_t i = 0; i < count; i++) { + int64_t count = tp.threads->Count(); + for (int64_t i = 0; i < count; i++) { (*tp.threads)[i] = std::thread(std::bind(ThreadRun, &tp)); } tp.mutex.unlock(); -- cgit v1.2.3