RunningThreadInfo.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2019, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5  or see $GENIE/LICENSE
6 
7  Author: Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
8  University of Liverpool & STFC Rutherford Appleton Lab
9 
10  For the class documentation see the corresponding header file.
11 
12  Important revisions after version 2.0.0 :
13 
14 */
15 //____________________________________________________________________________
16 
20 
21 using namespace genie;
22 
23 //____________________________________________________________________________
25 //____________________________________________________________________________
27 {
28  fInstance = 0;
29 }
30 //____________________________________________________________________________
32 {
33  fInstance = 0;
34 }
35 //____________________________________________________________________________
37 {
38  if(fInstance == 0) {
39  static RunningThreadInfo::Cleaner cleaner;
42  }
43  return fInstance;
44 }
45 //____________________________________________________________________________
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
static RunningThreadInfo * Instance(void)
Keep info on the event generation thread currently on charge. This is used so that event generation m...
static RunningThreadInfo * fInstance
self