Struct init_data¶
Defined in File init.hpp
Struct Documentation¶
-
struct
concore::v1::init_data¶ Configuration data for the concore library.
Store here all the parameters needed to be passed to concore when initializing. Any parameters that are left unfilled will have reasonable defaults in concore.
Public Members
-
int
num_workers_= {0}¶ The number of workers we need to create in the task system; 0 = num core available.
-
int
reserved_slots_= {10}¶ The number of extra slots we reserve for other threads to temporary join the tasks system.
-
std::function<void()>
worker_start_fun_¶ Function to be called at the start of each thread. Use this if you want to do things like setting thread priority, affinity, etc.
-
int