From ba250cc496b2e617823ff8111ef463b6adea27f4 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 11 Dec 2023 14:46:50 -0500 Subject: replace handles with union struct --- src/thread_pool.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/thread_pool.hpp') diff --git a/src/thread_pool.hpp b/src/thread_pool.hpp index 12962dd..dc75f33 100644 --- a/src/thread_pool.hpp +++ b/src/thread_pool.hpp @@ -9,7 +9,9 @@ #include #include -TypeSafeInt_H(ThreadPoolHandle, uint64_t, 0xFFFFFFFFFFFFFFFF); +struct ThreadPoolHandle : public PkeHandle { }; + +constexpr ThreadPoolHandle ThreadPoolHandle_MAX = ThreadPoolHandle{}; ThreadPoolHandle PkeThreads_Init (uint8_t threadCount, uint8_t maxQueueCount, MemBucket *bkt = nullptr); void PkeThreads_Reset (ThreadPoolHandle handle); -- cgit v1.2.3