Fix compilation on SunStudio. Avoid relying on combination of friend
declaration and nested class, which SunStudio gets wrong as it's quite
complex.
timer_(timer)
{}
void trigger() {
- query_->outstanding_ = false;
+ query_->answerReceived();
callback_();
// We are not needed any more.
delete this;
}
interface_ = &dst_interface;
}
+ /// \brief The answer for upstream query was received
+ ///
+ /// This should be called from within the FakeInterface only.
+ /// It marks that the query from upstream was answered.
+ void answerReceived() {
+ outstanding_ = false;
+ }
private:
// The scheduled steps for this task.
typedef std::pair<Task, size_t> Step;