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"
28class SegMemSvc:
public extends<Service, IIncidentListener> {
40 virtual void handle(
const Incident&)
override;
60 SegMemSvc(
const std::string& name, ISvcLocator* svc );
Collection of memory allocators with a common lifetime, plus subsystem summary.
Collection of memory allocators with a common lifetime,.
SG::ArenaHeader m_ahead_job
three arenas for different lifetimes
virtual void handle(const Incident &) override
T * allocate(SegMemSvc::LIFETIME, bool cache=true)
Get pointer to an area in the arena, used for new with placement.
SG::ArenaHeader m_ahead_evt
virtual StatusCode initialize() override
SegMemSvc(const std::string &name, ISvcLocator *svc)
ServiceHandle< IIncidentSvc > p_incSvc
bool del(T *)
free memory managed by arena
std::string cvt(SegMemSvc::LIFETIME life)
helper to for printout
SG::ArenaHeader m_ahead_inc