Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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 More...
 
template<typename KernelType , typename ArgType1 >
void runKernel (ArgType1 arg1)
 
void runThreads ()
 runs one iteration. This call blocks the main thread More...
 
Barrier * syncBarrier () const
 returns the barrier instance used to sync the threads during execution More...
 
FMEThread * thread (uint32_t threadNr) const
 returns the threadNr-th thread More...
 

Private Member Functions

void allocate ()
 
void deallocate ()
 

Private Attributes

uint32_t m_numThreads
 
Barrier * m_pSyncBarrier
 
FMEThread ** m_pThreads
 

Detailed Description

Definition at line 132 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 140 of file FMEThread.h.

◆ runKernel()

template<typename KernelType , typename ArgType1 >
void ogdf::fast_multipole_embedder::FMEThreadPool::runKernel ( ArgType1  arg1)
inline

Definition at line 152 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 146 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 143 of file FMEThread.h.

Member Data Documentation

◆ m_numThreads

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

Definition at line 168 of file FMEThread.h.

◆ m_pSyncBarrier

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

Definition at line 172 of file FMEThread.h.

◆ m_pThreads

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

Definition at line 170 of file FMEThread.h.


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