Import Geant4 11.2.1 source tree

This commit is contained in:
Gabriele Cosmo
2024-02-16 14:58:45 +01:00
parent 860a2b92bf
commit dda54bbdcf
331 changed files with 48457 additions and 50699 deletions
+9
View File
@@ -212,6 +212,15 @@ void G4TaskRunManager::SetNumberOfThreads(G4int n)
//============================================================================//
G4int G4TaskRunManager::GetNumberOfThreads() const
{
// If the ThreadPool isn't initialized, it will return 0 even if we've already
// set nworkers
return poolInitialized ? PTL::TaskRunManager::GetNumberOfThreads() : nworkers;
}
//============================================================================//
void G4TaskRunManager::Initialize()
{
G4bool firstTime = (threadPool == nullptr);