Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::fast_multipole_embedder::FMEThreadPool Class Reference

#include <ogdf/energybased/fast_multipole_embedder/FMEThread.h>

Public Member Functions

 FMEThreadPool (uint32_t numThreads)
 
 ~FMEThreadPool ()
 
uint32_t numThreads () const
 returns the number of threads in this pool
 
template<typename KernelType , typename ArgType1 >
void runKernel (ArgType1 arg1)
 
void runThreads ()
 runs one iteration. This call blocks the main thread
 
BarriersyncBarrier () const
 returns the barrier instance used to sync the threads during execution
 
FMEThreadthread (uint32_t threadNr) const
 returns the threadNr-th thread
 

Private Member Functions

void allocate ()
 
void deallocate ()
 

Private Attributes

uint32_t m_numThreads
 
Barrierm_pSyncBarrier
 
FMEThread ** m_pThreads
 

Detailed Description

Definition at line 127 of file FMEThread.h.

Constructor & Destructor Documentation

◆ FMEThreadPool()

ogdf::fast_multipole_embedder::FMEThreadPool::FMEThreadPool ( uint32_t  numThreads)
explicit

◆ ~FMEThreadPool()

ogdf::fast_multipole_embedder::FMEThreadPool::~FMEThreadPool ( )

Member Function Documentation

◆ allocate()

void ogdf::fast_multipole_embedder::FMEThreadPool::allocate ( )
private

◆ deallocate()

void ogdf::fast_multipole_embedder::FMEThreadPool::deallocate ( )
private

◆ numThreads()

uint32_t ogdf::fast_multipole_embedder::FMEThreadPool::numThreads ( ) const
inline

returns the number of threads in this pool

Definition at line 134 of file FMEThread.h.

◆ runKernel()

void ogdf::fast_multipole_embedder::FMEThreadPool::runKernel ( ArgType1  arg1)
inline

Definition at line 146 of file FMEThread.h.

◆ runThreads()

void ogdf::fast_multipole_embedder::FMEThreadPool::runThreads ( )

runs one iteration. This call blocks the main thread

◆ syncBarrier()

Barrier * ogdf::fast_multipole_embedder::FMEThreadPool::syncBarrier ( ) const
inline

returns the barrier instance used to sync the threads during execution

Definition at line 140 of file FMEThread.h.

◆ thread()

FMEThread * ogdf::fast_multipole_embedder::FMEThreadPool::thread ( uint32_t  threadNr) const
inline

returns the threadNr-th thread

Definition at line 137 of file FMEThread.h.

Member Data Documentation

◆ m_numThreads

uint32_t ogdf::fast_multipole_embedder::FMEThreadPool::m_numThreads
private

Definition at line 160 of file FMEThread.h.

◆ m_pSyncBarrier

Barrier* ogdf::fast_multipole_embedder::FMEThreadPool::m_pSyncBarrier
private

Definition at line 164 of file FMEThread.h.

◆ m_pThreads

FMEThread** ogdf::fast_multipole_embedder::FMEThreadPool::m_pThreads
private

Definition at line 162 of file FMEThread.h.


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