RunningThreadInfo.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2020, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5 
6  Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
7  University of Liverpool & STFC Rutherford Appleton Laboratory
8 */
9 //____________________________________________________________________________
10 
14 
15 using namespace genie;
16 
17 //____________________________________________________________________________
19 //____________________________________________________________________________
21 {
22  fInstance = 0;
23 }
24 //____________________________________________________________________________
26 {
27  fInstance = 0;
28 }
29 //____________________________________________________________________________
31 {
32  if(fInstance == 0) {
33  static RunningThreadInfo::Cleaner cleaner;
36  }
37  return fInstance;
38 }
39 //____________________________________________________________________________
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
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