https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ParallelUniqueId.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#include "ParallelUniqueId.h"
11
13
14#ifdef LIBMESH_HAVE_TBB_API
15tbb::concurrent_bounded_queue<unsigned int> ParallelUniqueId::_ids;
16#elif !defined(LIBMESH_HAVE_OPENMP) && defined(LIBMESH_HAVE_PTHREAD)
17std::queue<unsigned int> ParallelUniqueId::_ids;
19#endif
static tbb::concurrent_bounded_queue< unsigned int > _ids
static Threads::spin_mutex _pthread_id_mutex
static bool _initialized