From b76e309166f714b0a66fb4802f02e92a82d09082 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 9 Jan 2025 14:44:31 -0500 Subject: flatten file structure + rename --- src/thread_pool.hpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/thread_pool.hpp (limited to 'src/thread_pool.hpp') diff --git a/src/thread_pool.hpp b/src/thread_pool.hpp deleted file mode 100644 index 30ee516..0000000 --- a/src/thread_pool.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef PKE_THREADING_HPP -#define PKE_THREADING_HPP - -#include "dynamic-array.hpp" -#include "vendor/pk.h" - -#include -#include - -struct ThreadPoolHandle : public pk_handle { }; - -constexpr ThreadPoolHandle ThreadPoolHandle_MAX = ThreadPoolHandle{ pk_handle_MAX_constexpr }; - -void PkeThreads_Init(); -ThreadPoolHandle PkeThreads_Init (uint8_t threadCount, uint8_t maxQueueCount, struct pk_membucket *bkt = nullptr); -void PkeThreads_Reset (ThreadPoolHandle handle); -bool PkeThreads_Enqueue (ThreadPoolHandle handle, std::packaged_task *job); -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 */ -- cgit v1.2.3