Flag to indicate number of concurrent threads, possibly per worker"
Definition at line 46 of file ConcurrencyFlags.py.
◆ _do_action()
| python.ConcurrencyFlags.NumThreads._do_action |
( |
| self | ) |
|
|
protected |
Definition at line 53 of file ConcurrencyFlags.py.
53 def _do_action(self):
54 try:
55 import GaudiHive
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
◆ allowedTypes
| list python.ConcurrencyFlags.NumThreads.allowedTypes = ['int'] |
|
static |
◆ statusOn
| bool python.ConcurrencyFlags.NumThreads.statusOn = True |
|
static |
◆ StoredValue
| int python.ConcurrencyFlags.NumThreads.StoredValue = 0 |
|
static |
The documentation for this class was generated from the following file: