17#ifndef SYSC_SCC_SC_THREAD_POOL_H_
18#define SYSC_SCC_SC_THREAD_POOL_H_
20#include <cci_configuration>
64 void execute(std::function<
void(
void)> fct);
67 scc::peq<std::function<void(
void)>> dispatch_queue{
"dispatch_queue"};
68 unsigned thread_avail{0}, thread_active{0};
void execute(std::function< void(void)> fct)
Execute the given function in a separate SC_THREAD.
sc_thread_pool()
Constructor for the sc_thread_pool class.
virtual ~sc_thread_pool()
Destructor for the sc_thread_pool class.
cci::cci_param< unsigned > max_concurrent_threads
The maximum number of concurrent threads in the thread pool.