Callisto Engine
init_threading_params.h
1#pragma once
2#include "async_worker.h"
3
4namespace cl::threading {
5 class scheduler;
6
12 unsigned int thread_count{0};
13
15 static constexpr size_t size_per_thread = sizeof (async_worker);
16
18 void* thread_memory{nullptr};
19
22 };
23}
Definition: async_worker.h:7
Thread pool scheduler interface.
Definition: scheduler.h:13
Init params for the threading module.
Definition: init_threading_params.h:10
unsigned int thread_count
Total thread count. Must be > 0.
Definition: init_threading_params.h:12
void * thread_memory
The memory for all thread workers. Assumed to be thread_count*thread_memory in size....
Definition: init_threading_params.h:18
static constexpr size_t size_per_thread
A constant describing the size in bytes a single worker thread needs for allocation.
Definition: init_threading_params.h:15