The Gaudi Framework  v29r0 (ff2e7097)
ThreadLocalContext.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_THREADLOCALCONTEXT_H
2 #define GAUDIKERNEL_THREADLOCALCONTEXT_H 1
3 
4 #include <cstddef>
5 
6 #include "GaudiKernel/Kernel.h"
7 
8 class EventContext;
9 
10 namespace Gaudi
11 {
12  namespace Hive
13  {
16 
20  GAUDI_API ContextIdType currentContextId();
21  GAUDI_API ContextIdType currentContextEvt();
23 
25  GAUDI_API void setCurrentContextId( ContextIdType newId );
26  GAUDI_API void setCurrentContextEvt( long int evtN );
27  GAUDI_API void setCurrentContextId( ContextIdType newId, long int evtN );
28  GAUDI_API void setCurrentContextId( const EventContext* ctx );
29  GAUDI_API void setCurrentContext( const EventContext* ctx );
30  GAUDI_API void setCurrentContext( const EventContext& ctx );
31  }
32 }
33 
34 #endif
std::size_t ContextIdType
Internal type used for the ContextId.
GAUDI_API ContextIdType currentContextId()
Return the current context id.
GAUDI_API void setCurrentContextId(ContextIdType newId)
Used by the framework to change the value of the current context id.
This class represents an entry point to all the event specific data.
Definition: EventContext.h:24
GAUDI_API const EventContext & currentContext()
GAUDI_API void setCurrentContext(const EventContext *ctx)
GAUDI_API ContextIdType currentContextEvt()
GAUDI_API void setCurrentContextEvt(long int evtN)
#define GAUDI_API
Definition: Kernel.h:110
Helper functions to set/get the application return code.
Definition: __init__.py:1