diff options
Diffstat (limited to 'src/thread_pool.hpp')
| -rw-r--r-- | src/thread_pool.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <cstdint> #include <future> -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); |
