diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-11 11:13:15 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-11 11:13:15 -0500 |
| commit | cce568a7f56861d6249d7445f51d0ed27c560a5c (patch) | |
| tree | dc16d597f2b5ba37935993add262bff28dc2ca44 /src/thread_pool.hpp | |
| parent | f07294ca65143fac8b1b426d1854212403721226 (diff) | |
checkpoint - mostly working condition after changes
Diffstat (limited to 'src/thread_pool.hpp')
| -rw-r--r-- | src/thread_pool.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thread_pool.hpp b/src/thread_pool.hpp index a2c48f7..4eb2fc8 100644 --- a/src/thread_pool.hpp +++ b/src/thread_pool.hpp @@ -11,6 +11,7 @@ struct ThreadPoolHandle : public PkeHandle { }; constexpr ThreadPoolHandle ThreadPoolHandle_MAX = ThreadPoolHandle{}; +void PkeThreads_Init(); 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<void()> *job); @@ -18,6 +19,7 @@ int64_t PkeThreads_GetQueueCount (ThreadPoolHandle handle); void PkeThreads_Pause (ThreadPoolHandle handle); void PkeThreads_Resume (ThreadPoolHandle handle); void PkeThreads_Shutdown (ThreadPoolHandle handle); +void PkeThreads_Teardown (); void PkeThreads_Teardown (ThreadPoolHandle handle); #endif /* PKE_THREADING_HPP */ |
