summaryrefslogtreecommitdiff
path: root/src/thread_pool.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-12-06 15:27:42 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-12-06 15:27:42 -0500
commit8629b2497b7cb453d1e4a3ed6897cfaf8a771863 (patch)
tree8003ca707705e2053bb2af84cfdb172cb03e3468 /src/thread_pool.cpp
parent837b2c91076b52d10438a7c6a564e613436ced48 (diff)
expose if the contents of a bucket were moved
Diffstat (limited to 'src/thread_pool.cpp')
-rw-r--r--src/thread_pool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread_pool.cpp b/src/thread_pool.cpp
index d3073dc..15cc4e9 100644
--- a/src/thread_pool.cpp
+++ b/src/thread_pool.cpp
@@ -117,7 +117,8 @@ ThreadPoolHandle PkeThreads_Init(uint8_t threadCount, uint8_t maxQueueCount, Mem
Buckets_Init(ThreadPool_BucketContainer);
}
assert(threadCount > 0);
- ThreadPoolHandle_T newHandle{Buckets_NewHandle(255, ThreadPool_BucketContainer)};
+ bool moved;
+ ThreadPoolHandle_T newHandle{Buckets_NewHandle(255, ThreadPool_BucketContainer, moved)};
auto b = Buckets_GetBucketIndex(newHandle);
auto i = Buckets_GetItemIndex(newHandle);