The Gaudi Framework
v36r9p1 (5c15b2bb)
ThreadLocalContext.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#ifndef GAUDIKERNEL_THREADLOCALCONTEXT_H
12
#define GAUDIKERNEL_THREADLOCALCONTEXT_H 1
13
14
#include <cstddef>
15
16
#include "
GaudiKernel/Kernel.h
"
17
18
class
EventContext
;
19
20
namespace
Gaudi
{
21
namespace
Hive {
23
typedef
std::size_t
ContextIdType
;
24
28
GAUDI_API
ContextIdType
currentContextId
();
29
GAUDI_API
ContextIdType
currentContextEvt
();
30
GAUDI_API
const
EventContext
&
currentContext
();
31
33
GAUDI_API
void
setCurrentContextId
(
ContextIdType
newId );
34
GAUDI_API
void
setCurrentContextEvt
(
long
int
evtN );
35
GAUDI_API
void
setCurrentContextId
(
ContextIdType
newId,
long
int
evtN );
36
GAUDI_API
void
setCurrentContextId
(
const
EventContext
*
ctx
);
37
GAUDI_API
void
setCurrentContext
(
const
EventContext
*
ctx
);
38
GAUDI_API
void
setCurrentContext
(
const
EventContext
&
ctx
);
39
}
// namespace Hive
40
}
// namespace Gaudi
41
42
#endif
Gaudi::Hive::setCurrentContext
GAUDI_API void setCurrentContext(const EventContext *ctx)
Definition:
ThreadLocalContext.cpp:41
Gaudi::Hive::currentContext
GAUDI_API const EventContext & currentContext()
Definition:
ThreadLocalContext.cpp:30
Gaudi::Hive::currentContextEvt
GAUDI_API ContextIdType currentContextEvt()
Definition:
ThreadLocalContext.cpp:29
Gaudi::Hive::setCurrentContextId
GAUDI_API void setCurrentContextId(ContextIdType newId)
Used by the framework to change the value of the current context id.
Definition:
ThreadLocalContext.cpp:33
Gaudi::Hive::ContextIdType
std::size_t ContextIdType
Internal type used for the ContextId.
Definition:
ThreadLocalContext.h:23
GaudiPython.Pythonizations.ctx
ctx
Definition:
Pythonizations.py:588
Gaudi
Header file for std:chrono::duration-based Counters.
Definition:
__init__.py:1
Kernel.h
EventContext
Definition:
EventContext.h:34
Gaudi::Hive::currentContextId
GAUDI_API ContextIdType currentContextId()
Return the current context id.
Definition:
ThreadLocalContext.cpp:28
std::size_t
GAUDI_API
#define GAUDI_API
Definition:
Kernel.h:81
Gaudi::Hive::setCurrentContextEvt
GAUDI_API void setCurrentContextEvt(long int evtN)
Definition:
ThreadLocalContext.cpp:32
GaudiKernel
include
GaudiKernel
ThreadLocalContext.h
Generated on Fri Feb 3 2023 18:02:57 for The Gaudi Framework by
1.8.18