 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef CONTROL_STOREGATE_SEGMEMSVC_H
8 #define CONTROL_STOREGATE_SEGMEMSVC_H 1
10 #include "GaudiKernel/Service.h"
11 #include "GaudiKernel/IIncidentListener.h"
12 #include "GaudiKernel/IIncidentSvc.h"
13 #include "GaudiKernel/MsgStream.h"
14 #include "GaudiKernel/ServiceHandle.h"
28 class SegMemSvc:
public extends<Service, IIncidentListener> {
40 virtual void handle(
const Incident&)
override;
virtual void handle(const Incident &) override
bool del(T *)
free memory managed by arena
SG::ArenaHeader m_ahead_inc
T * allocate(SegMemSvc::LIFETIME, bool cache=true)
Get pointer to an area in the arena, used for new with placement.
virtual StatusCode initialize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ArenaHeader m_ahead_evt
Collection of memory allocators with a common lifetime,.
AthROOTErrorHandlerSvc * svc
Service to access an arena caching allocator.
Collection of memory allocators with a common lifetime, plus subsystem summary.
SegMemSvc(const std::string &name, ISvcLocator *svc)
std::string cvt(SegMemSvc::LIFETIME life)
helper to for printout
SG::ArenaHeader m_ahead_job
three arenas for different lifetimes
ServiceHandle< IIncidentSvc > p_incSvc