9#define BS_THREAD_POOL_ENABLE_PRIORITY
10#define BS_THREAD_POOL_ENABLE_PAUSE
11#include <BS_thread_pool.hpp>
39 std::shared_ptr<BS::thread_pool>
Get()
const;
48 std::shared_ptr<BS::thread_pool> mThreadPool;
A named Part with a parent/child hierarchy and optional thread safety.
Definition Component.h:34
Component wrapper around a BS::thread_pool.
Definition ThreadPool.h:26
void Pause()
Pauses the thread pool, preventing it from picking up new tasks.
~ThreadPool() override=default
std::shared_ptr< BS::thread_pool > Get() const
Returns the underlying thread pool.
ThreadPool(size_t threadCount)
Constructs a ThreadPool with the given number of worker threads.
void Unpause()
Unpauses the thread pool, allowing it to resume picking up tasks.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14