Closed Phibedy closed 7 years ago
We could add publish and hasNewData methods to dataChannel:
publish
hasNewData
void publish(lms::Time t= lms::Time::now())
It would set some internal time value.
bool hasNewData()
Would check the internal time value and return true after publish has been called only once for each module.
Is it really necessary to save a timestamp here? (Do you need the timestamp?)
It would make sense to have the publish()-method only for WriteDataChannel and hasNewData() only for ReadDataChannel.
publish()
WriteDataChannel
hasNewData()
ReadDataChannel
We could add
publish
andhasNewData
methods to dataChannel:It would set some internal time value.
Would check the internal time value and return true after publish has been called only once for each module.