www.mooseframework.org
ParallelUniqueId.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #include "ParallelUniqueId.h"
16 
18 
19 #ifdef LIBMESH_HAVE_TBB_API
20 tbb::concurrent_bounded_queue<unsigned int> ParallelUniqueId::_ids;
21 #elif !defined(LIBMESH_HAVE_OPENMP) && defined(LIBMESH_HAVE_PTHREAD)
22 std::queue<unsigned int> ParallelUniqueId::_ids;
23 Threads::spin_mutex ParallelUniqueId::_pthread_id_mutex;
24 #endif
static tbb::concurrent_bounded_queue< unsigned int > _ids
static bool _initialized
static Threads::spin_mutex _pthread_id_mutex