DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::detail::ThreadPool Class Reference

#include <detail/thread_pool.hpp>

Public Member Functions

void drain ()
 
 ThreadPool (unsigned int ThreadCount=1)
 
 ~ThreadPool ()
 
void finishAndWait ()
 
template<typename T >
void submit (T &&Func)
 
void submit (std::function< void()> &&Func)
 

Detailed Description

Definition at line 25 of file thread_pool.hpp.

Constructor & Destructor Documentation

◆ ThreadPool()

sycl::_V1::detail::ThreadPool::ThreadPool ( unsigned int  ThreadCount = 1)
inline

Definition at line 73 of file thread_pool.hpp.

◆ ~ThreadPool()

sycl::_V1::detail::ThreadPool::~ThreadPool ( )
inline

Definition at line 77 of file thread_pool.hpp.

References finishAndWait().

Member Function Documentation

◆ drain()

void sycl::_V1::detail::ThreadPool::drain ( )
inline

Definition at line 68 of file thread_pool.hpp.

◆ finishAndWait()

void sycl::_V1::detail::ThreadPool::finishAndWait ( )
inline

Definition at line 79 of file thread_pool.hpp.

Referenced by ~ThreadPool().

◆ submit() [1/2]

void sycl::_V1::detail::ThreadPool::submit ( std::function< void()> &&  Func)
inline

Definition at line 98 of file thread_pool.hpp.

◆ submit() [2/2]

template<typename T >
void sycl::_V1::detail::ThreadPool::submit ( T &&  Func)
inline

Definition at line 89 of file thread_pool.hpp.


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