Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
ThreadPool.cc File Reference
#include "PTL/ThreadPool.hh"
#include "PTL/Globals.hh"
#include "PTL/ThreadData.hh"
#include "PTL/UserTaskQueue.hh"
#include "PTL/VUserTaskQueue.hh"
#include <cstdlib>

Go to the source code of this file.

Functions

intmax_t ncores ()
 

Function Documentation

◆ ncores()

intmax_t ncores ( )
inline

Definition at line 44 of file ThreadPool.cc.

45{
46 return static_cast<intmax_t>(Thread::hardware_concurrency());
47}