Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Framework
EventGen
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
11
#include "
Framework/EventGen//RunningThreadInfo.h
"
12
#include "
Framework/EventGen/EventGeneratorI.h
"
13
#include "
Framework/Messenger/Messenger.h
"
14
15
using namespace
genie
;
16
17
//____________________________________________________________________________
18
RunningThreadInfo
*
RunningThreadInfo::fInstance
= 0;
19
//____________________________________________________________________________
20
RunningThreadInfo::RunningThreadInfo
()
21
{
22
fInstance
= 0;
23
}
24
//____________________________________________________________________________
25
RunningThreadInfo::~RunningThreadInfo
()
26
{
27
fInstance
= 0;
28
}
29
//____________________________________________________________________________
30
RunningThreadInfo
*
RunningThreadInfo::Instance
()
31
{
32
if
(
fInstance
== 0) {
33
static
RunningThreadInfo::Cleaner
cleaner;
34
cleaner.
DummyMethodAndSilentCompiler
();
35
fInstance
=
new
RunningThreadInfo
;
36
}
37
return
fInstance
;
38
}
39
//____________________________________________________________________________
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
AlgCmp.h:25
EventGeneratorI.h
RunningThreadInfo.h
genie::RunningThreadInfo::~RunningThreadInfo
virtual ~RunningThreadInfo()
Definition:
RunningThreadInfo.cxx:25
genie::RunningThreadInfo::Cleaner
clean
Definition:
RunningThreadInfo.h:55
genie::RunningThreadInfo::Cleaner::DummyMethodAndSilentCompiler
void DummyMethodAndSilentCompiler()
Definition:
RunningThreadInfo.h:56
Messenger.h
genie::RunningThreadInfo::Instance
static RunningThreadInfo * Instance(void)
Definition:
RunningThreadInfo.cxx:30
genie::RunningThreadInfo::RunningThreadInfo
RunningThreadInfo()
Definition:
RunningThreadInfo.cxx:20
genie::RunningThreadInfo
Keep info on the event generation thread currently on charge. This is used so that event generation m...
Definition:
RunningThreadInfo.h:29
genie::RunningThreadInfo::fInstance
static RunningThreadInfo * fInstance
self
Definition:
RunningThreadInfo.h:49
Generated by
1.8.11