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

#include <detail/thread_pool.hpp>

Public Member Functions

 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()

cl::sycl::detail::ThreadPool::ThreadPool ( unsigned int  ThreadCount = 1)

Definition at line 64 of file thread_pool.hpp.

◆ ~ThreadPool()

cl::sycl::detail::ThreadPool::~ThreadPool ( )

Definition at line 68 of file thread_pool.hpp.

Member Function Documentation

◆ finishAndWait()

void cl::sycl::detail::ThreadPool::finishAndWait ( )

Definition at line 70 of file thread_pool.hpp.

◆ submit() [1/2]

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

Definition at line 89 of file thread_pool.hpp.

◆ submit() [2/2]

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

Definition at line 80 of file thread_pool.hpp.

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