www.mooseframework.org
ParallelUniqueId.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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
15 tbb::concurrent_bounded_queue<unsigned int> ParallelUniqueId::_ids;
16 #elif !defined(LIBMESH_HAVE_OPENMP) && defined(LIBMESH_HAVE_PTHREAD)
17 std::queue<unsigned int> ParallelUniqueId::_ids;
18 Threads::spin_mutex ParallelUniqueId::_pthread_id_mutex;
19 #endif
static tbb::concurrent_bounded_queue< unsigned int > _ids
static bool _initialized
static Threads::spin_mutex _pthread_id_mutex