initial implementation
This commit is contained in:
commit
532d48529f
29 changed files with 2329 additions and 0 deletions
34
src/reactor/ReactorSource.cpp
Normal file
34
src/reactor/ReactorSource.cpp
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/* @file Source.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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue