KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_CONNECTIVITY::TASK_GROUP Class Reference

#include <conn_tasks.h>

Public Member Functions

 TASK_GROUP (size_t aCount)
 
 TASK_GROUP (const TASK_GROUP &)=delete
 
TASK_GROUPoperator= (const TASK_GROUP &)=delete
 
 ~TASK_GROUP ()
 
template<typename FUNCTION>
void Submit (thread_pool &aPool, FUNCTION &&aFunction)
 
void Get ()
 

Private Attributes

std::vector< std::future< void > > m_tasks
 

Detailed Description

Definition at line 31 of file conn_tasks.h.

Constructor & Destructor Documentation

◆ TASK_GROUP() [1/2]

SCH_CONNECTIVITY::TASK_GROUP::TASK_GROUP ( size_t aCount)
inlineexplicit

Definition at line 34 of file conn_tasks.h.

References m_tasks.

Referenced by operator=(), and TASK_GROUP().

◆ TASK_GROUP() [2/2]

SCH_CONNECTIVITY::TASK_GROUP::TASK_GROUP ( const TASK_GROUP & )
delete

References TASK_GROUP().

◆ ~TASK_GROUP()

SCH_CONNECTIVITY::TASK_GROUP::~TASK_GROUP ( )
inline

Definition at line 38 of file conn_tasks.h.

References m_tasks.

Member Function Documentation

◆ Get()

void SCH_CONNECTIVITY::TASK_GROUP::Get ( )
inline

Definition at line 56 of file conn_tasks.h.

References m_tasks.

Referenced by SCH_CONNECTIVITY::ParallelFor().

◆ operator=()

TASK_GROUP & SCH_CONNECTIVITY::TASK_GROUP::operator= ( const TASK_GROUP & )
delete

References TASK_GROUP().

◆ Submit()

template<typename FUNCTION>
void SCH_CONNECTIVITY::TASK_GROUP::Submit ( thread_pool & aPool,
FUNCTION && aFunction )
inline

Definition at line 48 of file conn_tasks.h.

References m_tasks.

Referenced by SCH_CONNECTIVITY::ParallelFor().

Member Data Documentation

◆ m_tasks

std::vector<std::future<void> > SCH_CONNECTIVITY::TASK_GROUP::m_tasks
private

Definition at line 63 of file conn_tasks.h.

Referenced by Get(), Submit(), TASK_GROUP(), and ~TASK_GROUP().


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