All Classes Namespaces Functions Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
kvikio::thread_pool_wrapper< pool_type > Class Template Reference
Inheritance diagram for kvikio::thread_pool_wrapper< pool_type >:

Public Member Functions

 thread_pool_wrapper (unsigned int nthreads)
 Construct a new thread pool wrapper, and invoke a pre-defined initialization function in each worker thread. More...
 
void reset (unsigned int nthreads)
 Reset the number of threads in the thread pool, and invoke a pre-defined initialization function in each worker thread. More...
 

Detailed Description

template<typename pool_type>
class kvikio::thread_pool_wrapper< pool_type >

Definition at line 28 of file threadpool_wrapper.hpp.

Constructor & Destructor Documentation

◆ thread_pool_wrapper()

template<typename pool_type >
kvikio::thread_pool_wrapper< pool_type >::thread_pool_wrapper ( unsigned int  nthreads)
inline

Construct a new thread pool wrapper, and invoke a pre-defined initialization function in each worker thread.

Parameters
nthreadsThe number of threads to use.

Definition at line 36 of file threadpool_wrapper.hpp.

Member Function Documentation

◆ reset()

template<typename pool_type >
void kvikio::thread_pool_wrapper< pool_type >::reset ( unsigned int  nthreads)
inline

Reset the number of threads in the thread pool, and invoke a pre-defined initialization function in each worker thread.

Parameters
nthreadsThe number of threads to use.

Definition at line 44 of file threadpool_wrapper.hpp.


The documentation for this class was generated from the following file: