The Gaudi Framework  master (37c0b60a)
Gaudi::Concurrency::ConcurrencyFlags Class Reference

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/ConcurrencyFlags.h>

Collaboration diagram for Gaudi::Concurrency::ConcurrencyFlags:

Static Public Member Functions

static GAUDI_API std::size_t numThreads ()
 number of Worker Threads (for MT) More...
 
static GAUDI_API std::size_t numConcurrentEvents ()
 number of Concurrent Events (for MT) More...
 
static GAUDI_API std::size_t numProcs ()
 number of forked child processes (for MP) More...
 
static GAUDI_API bool concurrent ()
 serial operation, or some form of concurrency More...
 

Static Private Member Functions

static GAUDI_API void setNumThreads (const std::size_t &nT)
 
static GAUDI_API void setNumConcEvents (const std::size_t &nE)
 
static GAUDI_API void setNumProcs (const std::size_t &nP)
 

Static Private Attributes

static std::size_t n_threads { 0 }
 
static std::size_t n_concEvts { 0 }
 
static std::size_t n_procs { 0 }
 

Friends

class ::ThreadPoolSvc
 
class ::HiveWhiteBoard
 
class ::EvtStoreSvc
 
class SG::HiveMgrSvc
 
class ::AthMpEvtLoopMgr
 

Detailed Description

Definition at line 42 of file ConcurrencyFlags.h.

Member Function Documentation

◆ concurrent()

static GAUDI_API bool Gaudi::Concurrency::ConcurrencyFlags::concurrent ( )
inlinestatic

serial operation, or some form of concurrency

Definition at line 65 of file ConcurrencyFlags.h.

65 { return ( n_threads || n_concEvts || n_procs ); }

◆ numConcurrentEvents()

static GAUDI_API std::size_t Gaudi::Concurrency::ConcurrencyFlags::numConcurrentEvents ( )
inlinestatic

number of Concurrent Events (for MT)

Definition at line 57 of file ConcurrencyFlags.h.

57 { return n_concEvts; }

◆ numProcs()

static GAUDI_API std::size_t Gaudi::Concurrency::ConcurrencyFlags::numProcs ( )
inlinestatic

number of forked child processes (for MP)

Definition at line 61 of file ConcurrencyFlags.h.

61 { return n_procs; }

◆ numThreads()

static GAUDI_API std::size_t Gaudi::Concurrency::ConcurrencyFlags::numThreads ( )
inlinestatic

number of Worker Threads (for MT)

Definition at line 53 of file ConcurrencyFlags.h.

53 { return n_threads; }

◆ setNumConcEvents()

static GAUDI_API void Gaudi::Concurrency::ConcurrencyFlags::setNumConcEvents ( const std::size_t nE)
inlinestaticprivate

Definition at line 69 of file ConcurrencyFlags.h.

69 { n_concEvts = nE; }

◆ setNumProcs()

static GAUDI_API void Gaudi::Concurrency::ConcurrencyFlags::setNumProcs ( const std::size_t nP)
inlinestaticprivate

Definition at line 70 of file ConcurrencyFlags.h.

70 { n_procs = nP; }

◆ setNumThreads()

static GAUDI_API void Gaudi::Concurrency::ConcurrencyFlags::setNumThreads ( const std::size_t nT)
inlinestaticprivate

Definition at line 68 of file ConcurrencyFlags.h.

68 { n_threads = nT; }

Friends And Related Function Documentation

◆ ::AthMpEvtLoopMgr

friend class ::AthMpEvtLoopMgr
friend

Definition at line 48 of file ConcurrencyFlags.h.

◆ ::EvtStoreSvc

friend class ::EvtStoreSvc
friend

Definition at line 46 of file ConcurrencyFlags.h.

◆ ::HiveWhiteBoard

friend class ::HiveWhiteBoard
friend

Definition at line 45 of file ConcurrencyFlags.h.

◆ ::ThreadPoolSvc

friend class ::ThreadPoolSvc
friend

Definition at line 44 of file ConcurrencyFlags.h.

◆ SG::HiveMgrSvc

friend class SG::HiveMgrSvc
friend

Definition at line 47 of file ConcurrencyFlags.h.

Member Data Documentation

◆ n_concEvts

std::size_t ConcurrencyFlags::n_concEvts { 0 }
staticprivate

Definition at line 74 of file ConcurrencyFlags.h.

◆ n_procs

std::size_t ConcurrencyFlags::n_procs { 0 }
staticprivate

Definition at line 75 of file ConcurrencyFlags.h.

◆ n_threads

std::size_t ConcurrencyFlags::n_threads { 0 }
staticprivate

Definition at line 73 of file ConcurrencyFlags.h.


The documentation for this class was generated from the following files:
Gaudi::Concurrency::ConcurrencyFlags::n_concEvts
static std::size_t n_concEvts
Definition: ConcurrencyFlags.h:74
Gaudi::Concurrency::ConcurrencyFlags::n_threads
static std::size_t n_threads
Definition: ConcurrencyFlags.h:73
Gaudi::Concurrency::ConcurrencyFlags::n_procs
static std::size_t n_procs
Definition: ConcurrencyFlags.h:75