 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "GaudiKernel/ISvcLocator.h"
8 #include "GaudiKernel/IIncidentSvc.h"
9 #include "GaudiKernel/Incident.h"
19 : base_class(
name,
svc ), p_incSvc(
"IncidentSvc",
name),
20 m_arena_job(
"sms_job",&m_ahead_job),
21 m_arena_evt(
"sms_evt",&m_ahead_evt),
22 m_arena_inc(
"sms_inc",&m_ahead_inc)
48 p_incSvc->addListener(
this,
"EndEvent" );
49 p_incSvc->addListener(
this,
"DefragMemory" );
51 return StatusCode::SUCCESS;
60 if (inc.type() ==
"EndEvent") {
62 std::ostringstream
ost;
68 debug() <<
"freeing all memory allocated for Event" <<
endmsg;
72 }
else if ( inc.type() ==
"DefragMemory") {
77 debug() <<
"freeing all memory allocated associated with "
78 <<
"DefragMemory incident" <<
endmsg;
virtual void handle(const Incident &) override
SG::ArenaHeader m_ahead_inc
virtual StatusCode initialize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
void reset()
Reset all contained allocators.
SG::ArenaHeader m_ahead_evt
AthROOTErrorHandlerSvc * svc
SegMemSvc(const std::string &name, ISvcLocator *svc)
ServiceHandle< IIncidentSvc > p_incSvc
const std::string & name() const
Return this Arena's name.
Helper class for making Arena instances current in a stack-like manner.