seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
seams::FairWidth Class Reference

#include <src/include/internal/thread_team.hpp>

Public Member Functions

 FairWidth (bool adopt=false)
 ~FairWidth ()
 FairWidth (const FairWidth &)=delete
FairWidth & operator= (const FairWidth &)=delete

Detailed Description

Definition at line 246 of file thread_team.hpp.

Constructor & Destructor Documentation

◆ FairWidth() [1/2]

seams::FairWidth::FairWidth ( bool adopt = false)
inlineexplicit

Definition at line 248 of file thread_team.hpp.

248 {
249#ifdef SEAMS_HAS_OPENMP
250 if (depth()++ == 0 && !omp_in_parallel() && fairEnabled()) {
251 choose();
252 }
253#endif
254 if (adopt) {
255 adoptThreads();
256 }
257 }
bool fairEnabled()
void adoptThreads()

◆ ~FairWidth()

seams::FairWidth::~FairWidth ( )
inline

Definition at line 258 of file thread_team.hpp.

258 {
259#ifdef SEAMS_HAS_OPENMP
260 if (set_) {
261 omp_set_num_threads(asked_);
262 }
263 --depth();
264#endif
265 }

◆ FairWidth() [2/2]

seams::FairWidth::FairWidth ( const FairWidth & )
delete

Member Function Documentation

◆ operator=()

FairWidth & seams::FairWidth::operator= ( const FairWidth & )
delete

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