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
15
#include "
Engine/Logging/TracyMacros.hpp
"
16
17
class
NamedThreadPool
:
public
BS_tracy::tracy_thread_pool<BS_tracy::tp::none> {
18
public
:
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
TracyMacros.hpp
NamedThreadPool::NamedThreadPool
NamedThreadPool(uint32_t threadCount=1, const std::string &prefix="Worker")
Constructs a named thread pool with specified thread count and naming prefix.
Definition
NamedThreadPool.h:25
Engine
include
Engine
Renderer
NamedThreadPool.h
Generated by
1.14.0