7#include "GaudiKernel/ISvcLocator.h"
8#include "GaudiKernel/IIncidentSvc.h"
9#include "GaudiKernel/Incident.h"
19 : base_class( name, svc ),
p_incSvc(
"IncidentSvc",name),
48 p_incSvc->addListener(
this,
"EndEvent" );
49 p_incSvc->addListener(
this,
"DefragMemory" );
51 return StatusCode::SUCCESS;
60 if (inc.type() ==
"EndEvent") {
61 if (msgStream().level() <= MSG::DEBUG) {
62 std::ostringstream ost;
68 debug() <<
"freeing all memory allocated for Event" <<
endmsg;
72 }
else if ( inc.type() ==
"DefragMemory") {
74 if (msgStream().level() <= MSG::DEBUG) {
77 debug() <<
"freeing all memory allocated associated with "
78 <<
"DefragMemory incident" <<
endmsg;
Helper class for making Arena instances current in a stack-like manner.
SG::ArenaHeader m_ahead_job
three arenas for different lifetimes
virtual void handle(const Incident &) override
SG::ArenaHeader m_ahead_evt
virtual StatusCode initialize() override
SegMemSvc(const std::string &name, ISvcLocator *svc)
ServiceHandle< IIncidentSvc > p_incSvc
SG::ArenaHeader m_ahead_inc