Go to the documentation of this file.
20 #include <boost/fiber/all.hpp>
41 virtual StatusCode restoreAfterSuspend()
const;
47 template <
typename Clock,
typename Duration>
49 boost::this_fiber::sleep_until( sleep_time );
50 return restoreAfterSuspend();
54 template <
typename Rep,
typename Period>
56 boost::this_fiber::sleep_for( dur );
57 return restoreAfterSuspend();
62 boost::fibers::fiber_specific_ptr<std::size_t> s_currentSlot{};
StatusCode sleep_until(std::chrono::time_point< Clock, Duration > const &sleep_time) const
Forwards to boost::this_fiber::sleep_until.
Base class from which all concrete algorithm classes should be derived.
Base class for asynchronous algorithms.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
StatusCode sleep_for(std::chrono::duration< Rep, Period > const &dur) const
Forwards to boost::this_fiber::sleep_for.