diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-12-11 14:46:50 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-12-11 18:56:57 -0500 |
| commit | ba250cc496b2e617823ff8111ef463b6adea27f4 (patch) | |
| tree | dc926851da01b970aca827d6c6ca84b87a7432fa /src/thread_pool.hpp | |
| parent | 8047197b62894cb1f7bb6a6871870e4b91fde992 (diff) | |
replace handles with union struct
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); |
