From 8629b2497b7cb453d1e4a3ed6897cfaf8a771863 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 6 Dec 2023 15:27:42 -0500 Subject: expose if the contents of a bucket were moved --- src/thread_pool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/thread_pool.cpp') 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); -- cgit v1.2.3