VeloGraphX
High-performance dynamic graph analytics in C++20
Loading...
Searching...
No Matches
velographx::ThreadPool Class Reference

#include <thread_pool.hpp>

Public Member Functions

 ThreadPool (std::size_t threads=std::thread::hardware_concurrency())
 
 ~ThreadPool ()
 
void submit (std::function< void()> fn)
 
void wait_idle ()
 

Detailed Description

Definition at line 12 of file thread_pool.hpp.

Constructor & Destructor Documentation

◆ ThreadPool()

velographx::ThreadPool::ThreadPool ( std::size_t  threads = std::thread::hardware_concurrency())
inlineexplicit

Definition at line 14 of file thread_pool.hpp.

◆ ~ThreadPool()

velographx::ThreadPool::~ThreadPool ( )
inline

Definition at line 19 of file thread_pool.hpp.

Member Function Documentation

◆ submit()

void velographx::ThreadPool::submit ( std::function< void()>  fn)
inline

Definition at line 24 of file thread_pool.hpp.

◆ wait_idle()

void velographx::ThreadPool::wait_idle ( )
inline

Definition at line 28 of file thread_pool.hpp.


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