20 m_runtime(rt), m_messages(N_Burst), m_burst_duration(T_Burst), m_burst_period(T_BurstPeriod)
30 assert(m_burst_duration < m_burst_period);
31 Clock::duration delay = Clock::duration::max();
33 if (m_messages.empty()) {
34 delay = Clock::duration::zero();
35 }
else if (m_messages.front() + m_burst_duration > m_runtime.now() && !m_messages.full()) {
36 delay = Clock::duration::zero();
37 }
else if (m_messages.front() + m_burst_period < m_runtime.now()) {
39 delay = Clock::duration::zero();
41 delay = m_messages.front() + m_burst_period - m_runtime.now();