Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
NamedThreadPool.h
Go to the documentation of this file.
1
11#pragma once
12#include "BS_tracy_thread_pool.hpp"
13#include <string>
14
16
17class NamedThreadPool : public BS_tracy::tracy_thread_pool<BS_tracy::tp::none> {
18public:
25 explicit NamedThreadPool(uint32_t threadCount = 1, const std::string& prefix = "Worker")
26 : BS_tracy::tracy_thread_pool<BS_tracy::tp::none>(
27 threadCount,
28 []() {}, // Empty init function
29 prefix // Thread name prefix
30 )
31 {
32 }
33};
34
NamedThreadPool(uint32_t threadCount=1, const std::string &prefix="Worker")
Constructs a named thread pool with specified thread count and naming prefix.