ATLAS Offline Software
Static Public Attributes | Private Member Functions | List of all members
python.ConcurrencyFlags.NumThreads Class Reference
Inheritance diagram for python.ConcurrencyFlags.NumThreads:
Collaboration diagram for python.ConcurrencyFlags.NumThreads:

Static Public Attributes

bool statusOn = True
 
list allowedTypes = ['int']
 
int StoredValue = 0
 

Private Member Functions

def _do_action (self)
 

Detailed Description

Flag to indicate number of concurrent threads, possibly per worker"

Definition at line 46 of file ConcurrencyFlags.py.

Member Function Documentation

◆ _do_action()

def python.ConcurrencyFlags.NumThreads._do_action (   self)
private

Definition at line 53 of file ConcurrencyFlags.py.

53  def _do_action(self):
54  try:
55  import GaudiHive # noqa: F401
56  except ImportError:
57  from AthenaCommon.Logging import log
58  log.fatal("GaudiHive not in release - can't use --threads parameter")
59  import sys
60  from AthenaCommon import ExitCodes
61  sys.exit(ExitCodes.IMPORT_ERROR)
62 
63  if (self.get_Value() < 0):
64  from AthenaCommon.Logging import log
65  log.fatal("Number of threads [%s] cannot be negative",self.get_Value())
66  import sys
67  from AthenaCommon import ExitCodes
68  sys.exit(ExitCodes.CONFIGURATION_ERROR)
69 
70  return
71 
72 

Member Data Documentation

◆ allowedTypes

list python.ConcurrencyFlags.NumThreads.allowedTypes = ['int']
static

Definition at line 50 of file ConcurrencyFlags.py.

◆ statusOn

bool python.ConcurrencyFlags.NumThreads.statusOn = True
static

Definition at line 49 of file ConcurrencyFlags.py.

◆ StoredValue

int python.ConcurrencyFlags.NumThreads.StoredValue = 0
static

Definition at line 51 of file ConcurrencyFlags.py.


The documentation for this class was generated from the following file: