+void MessImpl::wait_for(actor::ActorImpl* issuer, double timeout)
+{
+ XBT_DEBUG("MessImpl::wait_for(%g), %p, state %s", timeout, this, get_state_str());
+
+ /* Associate this simcall to the wait synchro */
+ register_simcall(&issuer->simcall_);
+ ActivityImpl::wait_for(issuer, timeout);
+}
+
+void MessImpl::cancel()
+{
+ /* if the synchro is a waiting state means that it is still in a mbox so remove from it and delete it */
+ if (get_state() == State::WAITING) {
+ queue_->remove(this);
+ set_state(State::CANCELED);
+ }
+}
+