MCPcopy Create free account
hub / github.com/Geant4/geant4 / TerminateWorker

Method TerminateWorker

source/run/src/G4TaskRunManagerKernel.cc:266–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264//============================================================================//
265
266void G4TaskRunManagerKernel::TerminateWorker()
267{
268 //===============================
269 // Step-6: Terminate worker thread
270 //===============================
271 G4TaskRunManager* mrm = G4TaskRunManager::GetMasterRunManager();
272 if ((mrm != nullptr) && (mrm->GetUserWorkerInitialization() != nullptr))
273 mrm->GetUserWorkerInitialization()->WorkerStop();
274
275 workerRM().reset();
276 context().reset();
277
278 G4WorkerThread::DestroyGeometryAndPhysicsVector();
279
280 G4Threading::WorkerThreadLeavesPool();
281}
282
283//============================================================================//
284

Callers

nothing calls this directly

Calls 3

WorkerStopMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected