#ifndef PKE_THREADING_HPP #define PKE_THREADING_HPP #include "dynamic-array.hpp" #include "macros.hpp" #include #include #include #include TypeSafeInt_H(ThreadPoolHandle, uint64_t, 0xFFFFFFFFFFFFFFFF); ThreadPoolHandle PkeThreads_Init (uint8_t threadCount, uint8_t maxQueueCount, MemBucket *bkt = nullptr); void PkeThreads_Reset (ThreadPoolHandle handle); bool PkeThreads_Enqueue (ThreadPoolHandle handle, std::packaged_task job); void PkeThreads_Pause (ThreadPoolHandle handle); void PkeThreads_Resume (ThreadPoolHandle handle); void PkeThreads_Shutdown (ThreadPoolHandle handle); void PkeThreads_Teardown (ThreadPoolHandle handle); #endif /* PKE_THREADING_HPP */