| The Gaudi Framework v28r2p1 (f1a77ff4)

- 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 26 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 48 of file ConcurrencyFlags.h.

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

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

number of Concurrent Events (for MT)

Definition at line 40 of file ConcurrencyFlags.h.

40 { return n_concEvts; }
Gaudi::Concurrency::ConcurrencyFlags::n_concEvts
static std::size_t n_concEvts
Definition: ConcurrencyFlags.h:60

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

number of forked child processes (for MP)

Definition at line 44 of file ConcurrencyFlags.h.

44 { return n_procs; }
Gaudi::Concurrency::ConcurrencyFlags::n_procs
static std::size_t n_procs
Definition: ConcurrencyFlags.h:61

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

number of Worker Threads (for MT)

Definition at line 36 of file ConcurrencyFlags.h.

36 {return n_threads; }
Gaudi::Concurrency::ConcurrencyFlags::n_threads
static std::size_t n_threads
Definition: ConcurrencyFlags.h:59

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

Definition at line 55 of file ConcurrencyFlags.h.

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

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

Definition at line 56 of file ConcurrencyFlags.h.

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

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

Definition at line 54 of file ConcurrencyFlags.h.

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

## Friends And Related Function Documentation

friend class ::AvalancheSchedulerSvc
| friend

Definition at line 30 of file ConcurrencyFlags.h.

friend class ::ForwardSchedulerSvc
| friend

Definition at line 29 of file ConcurrencyFlags.h.

friend class ::ThreadPoolSvc
| friend

Definition at line 28 of file ConcurrencyFlags.h.

## Member Data Documentation

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

Definition at line 60 of file ConcurrencyFlags.h.

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

Definition at line 61 of file ConcurrencyFlags.h.

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

Definition at line 59 of file ConcurrencyFlags.h.

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

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