git-subtree-dir: xo-reactor git-subtree-mainline:dd1a6b1afcgit-subtree-split:e3a53d10e6
34 lines
871 B
C++
34 lines
871 B
C++
/* @file ReactorSource.cpp */
|
|
|
|
#include "ReactorSource.hpp"
|
|
#include "xo/indentlog/print/time.hpp"
|
|
#include <cstdint>
|
|
|
|
namespace xo {
|
|
using xo::time::utc_nanos;
|
|
|
|
namespace reactor {
|
|
utc_nanos
|
|
ReactorSource::online_current_tm() const
|
|
{
|
|
/* for an online source:
|
|
* .is_exhausted() must always be false;
|
|
* this implies that .sim_current_tm() should
|
|
* not be called in the first place
|
|
*/
|
|
|
|
assert(false);
|
|
|
|
return time::timeutil::epoch();
|
|
} /*online_current_tm*/
|
|
|
|
std::uint64_t
|
|
ReactorSource::online_advance_until(utc_nanos /*tm*/,
|
|
bool /*replay_flag*/)
|
|
{
|
|
return 0;
|
|
} /*online_advance_until*/
|
|
} /*namespace reactor*/
|
|
} /*namespace xo*/
|
|
|
|
/* end Source.cpp */
|