44 std::this_thread::sleep_for( std::chrono::milliseconds( 50 * ctx.slot() ) );
48 std::chrono::milliseconds dt{
m_sleep + ctx.slot() * 500 };
49 std::this_thread::sleep_for( dt );
51 info() <<
"... done in " << dt.count() <<
" ms for " << ctx <<
endmsg;
52 std::this_thread::sleep_for( std::chrono::milliseconds( 50 ) );
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
This class represents an entry point to all the event specific data.
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
const std::string & name() const override
The identifying name of the algorithm object.
unsigned int index() const override
unsigned int cardinality() const override
Return the cardinality.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
StatusCode initialize() override
std::atomic< int > m_maxConcurrency
std::atomic< int > m_concurrentExecs
StatusCode finalize() override
StatusCode execute(const EventContext &ctx) const override
Gaudi::Property< unsigned int > m_sleep
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...