Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VW::thread_pool Class Reference

#include <thread_pool.h>

Public Member Functions

 thread_pool (size_t num_threads)
 
 ~thread_pool ()
 
template<typename F , typename... Args>
auto submit (F &&func, Args &&... args) -> std::future< decltype(func(args...))>
 
size_t size () const
 

Constructor & Destructor Documentation

◆ thread_pool()

VW::thread_pool::thread_pool ( size_t  num_threads)
inlineexplicit

◆ ~thread_pool()

VW::thread_pool::~thread_pool ( )
inline

Member Function Documentation

◆ size()

size_t VW::thread_pool::size ( ) const
inline

◆ submit()

template<typename F , typename... Args>
auto VW::thread_pool::submit ( F &&  func,
Args &&...  args 
) -> std::future<decltype(func(args...))>
inline

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