summaryrefslogtreecommitdiffstats
path: root/core/templates/thread_work_pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/thread_work_pool.h')
-rw-r--r--core/templates/thread_work_pool.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/thread_work_pool.h b/core/templates/thread_work_pool.h
index 661060aa3f..e083cdcb24 100644
--- a/core/templates/thread_work_pool.h
+++ b/core/templates/thread_work_pool.h
@@ -41,8 +41,8 @@ class ThreadWorkPool {
std::atomic<uint32_t> index;
struct BaseWork {
- std::atomic<uint32_t> *index;
- uint32_t max_elements;
+ std::atomic<uint32_t> *index = nullptr;
+ uint32_t max_elements = 0;
virtual void work() = 0;
virtual ~BaseWork() = default;
};