The Gaudi Framework  master (37c0b60a)
ThreadLocalContext.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 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 {
24 
31 
34  GAUDI_API void setCurrentContextEvt( long int evtN );
35  GAUDI_API void setCurrentContextId( ContextIdType newId, long int evtN );
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:578
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
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