| The Gaudi Framework v29r1 (5cd95fa2)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Static Public Member Functions | Static Private Member Functions | Static Private Attributes | Friends | List of all members
Gaudi::Concurrency::ConcurrencyFlags Class Reference

`#include <GaudiKernel/ConcurrencyFlags.h>`

Collaboration diagram for Gaudi::Concurrency::ConcurrencyFlags:
[legend]

## 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 | ::ForwardSchedulerSvc
class | ::AvalancheSchedulerSvc

## Detailed Description

Definition at line 28 of file ConcurrencyFlags.h.

## Member Function Documentation

static GAUDI_API bool Gaudi::Concurrency::ConcurrencyFlags::concurrent | ( |  | ) |
| inline static

serial operation, or some form of concurrency

Definition at line 50 of file ConcurrencyFlags.h.

50 { return ( n_threads || n_concEvts || n_procs ); }
Gaudi::Concurrency::ConcurrencyFlags::n_threads
static std::size_t n_threads
Definition: ConcurrencyFlags.h:58
Gaudi::Concurrency::ConcurrencyFlags::n_concEvts
static std::size_t n_concEvts
Definition: ConcurrencyFlags.h:59
Gaudi::Concurrency::ConcurrencyFlags::n_procs
static std::size_t n_procs
Definition: ConcurrencyFlags.h:60

static GAUDI_API std::size_t Gaudi::Concurrency::ConcurrencyFlags::numConcurrentEvents | ( |  | ) |
| inline static

number of Concurrent Events (for MT)

Definition at line 42 of file ConcurrencyFlags.h.

42 { return n_concEvts; }
Gaudi::Concurrency::ConcurrencyFlags::n_concEvts
static std::size_t n_concEvts
Definition: ConcurrencyFlags.h:59

static GAUDI_API std::size_t Gaudi::Concurrency::ConcurrencyFlags::numProcs | ( |  | ) |
| inline static

number of forked child processes (for MP)

Definition at line 46 of file ConcurrencyFlags.h.

46 { return n_procs; }
Gaudi::Concurrency::ConcurrencyFlags::n_procs
static std::size_t n_procs
Definition: ConcurrencyFlags.h:60

static GAUDI_API std::size_t Gaudi::Concurrency::ConcurrencyFlags::numThreads | ( |  | ) |
| inline static

number of Worker Threads (for MT)

Definition at line 38 of file ConcurrencyFlags.h.

38 { return n_threads; }
Gaudi::Concurrency::ConcurrencyFlags::n_threads
static std::size_t n_threads
Definition: ConcurrencyFlags.h:58

static GAUDI_API void Gaudi::Concurrency::ConcurrencyFlags::setNumConcEvents | ( | const std::size_t & | nE | ) |
| inline static private

Definition at line 54 of file ConcurrencyFlags.h.

54 { n_concEvts = nE; }
Gaudi::Concurrency::ConcurrencyFlags::n_concEvts
static std::size_t n_concEvts
Definition: ConcurrencyFlags.h:59

static GAUDI_API void Gaudi::Concurrency::ConcurrencyFlags::setNumProcs | ( | const std::size_t & | nP | ) |
| inline static private

Definition at line 55 of file ConcurrencyFlags.h.

55 { n_procs = nP; }
Gaudi::Concurrency::ConcurrencyFlags::n_procs
static std::size_t n_procs
Definition: ConcurrencyFlags.h:60

static GAUDI_API void Gaudi::Concurrency::ConcurrencyFlags::setNumThreads | ( | const std::size_t & | nT | ) |
| inline static private

Definition at line 53 of file ConcurrencyFlags.h.

53 { n_threads = nT; }
Gaudi::Concurrency::ConcurrencyFlags::n_threads
static std::size_t n_threads
Definition: ConcurrencyFlags.h:58

## Friends And Related Function Documentation

friend class ::AvalancheSchedulerSvc
| friend

Definition at line 33 of file ConcurrencyFlags.h.

friend class ::ForwardSchedulerSvc
| friend

Definition at line 32 of file ConcurrencyFlags.h.

friend class ::ThreadPoolSvc
| friend

Definition at line 31 of file ConcurrencyFlags.h.

## Member Data Documentation

std::size_t ConcurrencyFlags::n_concEvts {0}
| static private

Definition at line 59 of file ConcurrencyFlags.h.

std::size_t ConcurrencyFlags::n_procs {0}
| static private

Definition at line 60 of file ConcurrencyFlags.h.

std::size_t ConcurrencyFlags::n_threads {0}
| static private

Definition at line 58 of file ConcurrencyFlags.h.

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

- GaudiKernel/GaudiKernel/ConcurrencyFlags.h
- GaudiKernel/src/Lib/ConcurrencyFlags.cpp