xo-expression2/xo-reactor/src/reactor/ReactorSource.cpp
Roland Conybeare 28b6d457c0 Add 'xo-reactor/' from commit 'e3a53d10e6'
git-subtree-dir: xo-reactor
git-subtree-mainline: dd1a6b1afc
git-subtree-split: e3a53d10e6
2025-05-11 15:11:22 -05:00

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 */