GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RunningThreadInfo.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2024, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5 
6  Costas Andreopoulos <c.andreopoulos \at cern.ch>
7  University of Liverpool
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 //____________________________________________________________________________
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