PolyFEM
Loading...
Searching...
No Matches
polyfem::utils::NThread Class Reference

#include <par_for.hpp>

Public Member Functions

size_t num_threads () const
 
void set_num_threads (const int max_threads)
 

Static Public Member Functions

static NThreadget ()
 

Private Member Functions

 NThread ()
 

Private Attributes

size_t num_threads_
 

Detailed Description

Definition at line 16 of file par_for.hpp.

Constructor & Destructor Documentation

◆ NThread()

polyfem::utils::NThread::NThread ( )
inlineprivate

Definition at line 40 of file par_for.hpp.

Member Function Documentation

◆ get()

static NThread & polyfem::utils::NThread::get ( )
inlinestatic

Definition at line 19 of file par_for.hpp.

Referenced by polyfem::utils::count_invalid(), polyfem::utils::get_n_threads(), polyfem::OptState::init(), polyfem::utils::is_valid(), polyfem::utils::is_valid(), polyfem::utils::max_time_step(), and polyfem::State::set_max_threads().

Here is the caller graph for this function:

◆ num_threads()

size_t polyfem::utils::NThread::num_threads ( ) const
inline

Definition at line 25 of file par_for.hpp.

References num_threads_.

Referenced by polyfem::utils::count_invalid(), polyfem::utils::get_n_threads(), polyfem::utils::is_valid(), polyfem::utils::is_valid(), polyfem::utils::max_time_step(), and set_num_threads().

Here is the caller graph for this function:

◆ set_num_threads()

void polyfem::utils::NThread::set_num_threads ( const int  max_threads)
inline

Definition at line 27 of file par_for.hpp.

References num_threads(), and num_threads_.

Referenced by polyfem::OptState::init(), and polyfem::State::set_max_threads().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ num_threads_

size_t polyfem::utils::NThread::num_threads_
private

Definition at line 42 of file par_for.hpp.

Referenced by num_threads(), and set_num_threads().


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