#include <ParallelUniqueId.h>
|
static void | initialize () |
| Must be called by main thread before any threaded computation! Do NOT call in a worker thread! More...
|
|
Definition at line 29 of file ParallelUniqueId.h.
◆ ParallelUniqueId()
ParallelUniqueId::ParallelUniqueId |
( |
| ) |
|
|
inline |
Definition at line 32 of file ParallelUniqueId.h.
34 #ifdef LIBMESH_HAVE_TBB_API 36 #elif LIBMESH_HAVE_OPENMP 37 id = omp_get_thread_num();
38 #elif LIBMESH_HAVE_PTHREAD 43 "No Thread IDs available in ParallelUniqueID. Did you forget to initialize()?");
static tbb::concurrent_bounded_queue< unsigned int > _ids
static Threads::spin_mutex _pthread_id_mutex
Provides a way for users to bail out of the current solve.
◆ ~ParallelUniqueId()
ParallelUniqueId::~ParallelUniqueId |
( |
| ) |
|
|
inline |
Definition at line 53 of file ParallelUniqueId.h.
55 #ifdef LIBMESH_HAVE_TBB_API 57 #elif !defined(LIBMESH_HAVE_OPENMP) && defined(LIBMESH_HAVE_PTHREAD) static tbb::concurrent_bounded_queue< unsigned int > _ids
static Threads::spin_mutex _pthread_id_mutex
◆ initialize()
static void ParallelUniqueId::initialize |
( |
| ) |
|
|
inlinestatic |
Must be called by main thread before any threaded computation! Do NOT call in a worker thread!
Definition at line 68 of file ParallelUniqueId.h.
Referenced by MooseInit::MooseInit().
74 #if defined(LIBMESH_HAVE_TBB_API) || \ 75 (!defined(LIBMESH_HAVE_OPENMP) && defined(LIBMESH_HAVE_PTHREAD))
static tbb::concurrent_bounded_queue< unsigned int > _ids
◆ _ids [1/2]
std::queue< unsigned int > ParallelUniqueId::_ids |
|
staticprivate |
◆ _ids [2/2]
std::queue<unsigned int> ParallelUniqueId::_ids |
|
staticprivate |
◆ _initialized
bool ParallelUniqueId::_initialized = false |
|
staticprivate |
◆ _pthread_id_mutex
◆ id
Definition at line 82 of file ParallelUniqueId.h.
Referenced by ComputeInitialConditionThread::operator()(), ThreadedNodeLoop< ConstBndNodeRange, ConstBndNodeRange::const_iterator >::operator()(), ComputeFVInitialConditionThread::operator()(), ComputeJacobianForScalingThread::operator()(), ComputeElemAuxBcsThread< AuxKernelType >::operator()(), ThreadedElementLoopBase< ConstElemPointerRange >::operator()(), MaxQpsThread::operator()(), AllLocalDofIndicesThread::operator()(), BoundaryElemIntegrityCheckThread::operator()(), PenetrationThread::operator()(), and ThreadedFaceLoop< RangeType >::operator()().
The documentation for this class was generated from the following files: