ContextSV v1.0.0
Loading...
Searching...
No Matches
ThreadPool Class Reference

#include <ThreadPool.h>

Collaboration diagram for ThreadPool:
Collaboration graph

Public Member Functions

 ThreadPool (size_t)
 
template<class F , class... Args>
auto enqueue (F &&f, Args &&... args) -> std::future< typename std::result_of< F(Args...)>::type >
 
 ~ThreadPool ()
 

Constructor & Destructor Documentation

◆ ThreadPool()

ThreadPool::ThreadPool ( size_t  threads)
inline

◆ ~ThreadPool()

ThreadPool::~ThreadPool ( )
inline

Member Function Documentation

◆ enqueue()

template<class F , class... Args>
auto ThreadPool::enqueue ( F &&  f,
Args &&...  args 
) -> std::future<typename std::result_of<F(Args...)>::type>
Here is the caller graph for this function:

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