nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
nk::detail::ThreadPool Class Reference

Public Member Functions

 ThreadPool (int n_workers)
 ThreadPool (const ThreadPool &)=delete
ThreadPool & operator= (const ThreadPool &)=delete
int workers () const
void run (std::size_t n, std::function< void(std::size_t, std::size_t)> fn, int max_workers=0)

Static Public Member Functions

static ThreadPool & global ()

Detailed Description

Definition at line 28 of file thread_pool.hpp.

Member Function Documentation

◆ workers()

int nk::detail::ThreadPool::workers ( ) const
inline

Definition at line 40 of file thread_pool.hpp.


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