aGrUM  0.16.0
thread_inl.h
Go to the documentation of this file.
1 
29 // to ease automatic parsers
30 #include <agrum/agrum.h>
31 #include <agrum/core/thread.h>
32 
33 
34 namespace gum {
35 
36  namespace thread {
37 
38 
39  // returns the maximum number of threads possible
40  INLINE unsigned int getMaxNumberOfThreads() {
41  return std::thread::hardware_concurrency();
42  }
43 
44 
45  } /* namespace thread */
46 
47 } /* namespace gum */
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
unsigned int getMaxNumberOfThreads()
returns the maximum number of threads possible
Definition: thread_inl.h:40