ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
POCKETFFT_NAMESPACE::detail::threading::thread_pool::worker Struct Reference

Detailed Description

Definition at line 811 of file pocketfft_hdronly.h.

+ Collaboration diagram for POCKETFFT_NAMESPACE::detail::threading::thread_pool::worker:

Public Member Functions

void worker_main (std::atomic< bool > &shutdown_flag, std::atomic< vcl_size_t > &unscheduled_tasks, concurrent_queue< std::function< void()> > &overflow_work)
 

Public Attributes

std::atomic_flag busy_flag = ATOMIC_FLAG_INIT
 
std::mutex mut
 
std::thread thread
 
std::function< void()> work
 
std::condition_variable work_ready
 

Member Function Documentation

◆ worker_main()

void POCKETFFT_NAMESPACE::detail::threading::thread_pool::worker::worker_main ( std::atomic< bool > & shutdown_flag,
std::atomic< vcl_size_t > & unscheduled_tasks,
concurrent_queue< std::function< void()> > & overflow_work )
inline

Definition at line 819 of file pocketfft_hdronly.h.

References busy_flag, mut, work, and work_ready.

Member Data Documentation

◆ busy_flag

std::atomic_flag POCKETFFT_NAMESPACE::detail::threading::thread_pool::worker::busy_flag = ATOMIC_FLAG_INIT

Definition at line 816 of file pocketfft_hdronly.h.

Referenced by worker_main().

◆ mut

std::mutex POCKETFFT_NAMESPACE::detail::threading::thread_pool::worker::mut

Definition at line 815 of file pocketfft_hdronly.h.

Referenced by worker_main().

◆ thread

std::thread POCKETFFT_NAMESPACE::detail::threading::thread_pool::worker::thread

Definition at line 813 of file pocketfft_hdronly.h.

◆ work

std::function<void()> POCKETFFT_NAMESPACE::detail::threading::thread_pool::worker::work

Definition at line 817 of file pocketfft_hdronly.h.

Referenced by worker_main().

◆ work_ready

std::condition_variable POCKETFFT_NAMESPACE::detail::threading::thread_pool::worker::work_ready

Definition at line 814 of file pocketfft_hdronly.h.

Referenced by worker_main().


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