summaryrefslogtreecommitdiff
path: root/src/thread-pool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread-pool.cpp')
-rw-r--r--src/thread-pool.cpp5
1 files changed, 3 insertions, 2 deletions
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 <functional>
#include <future>
@@ -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();