-/** @brief get the receiver (process associated to the mailbox) */
-ActorPtr Mailbox::receiver() {
- if(pimpl_->permanent_receiver == nullptr) return ActorPtr();
- return ActorPtr(&pimpl_->permanent_receiver->actor());
+smx_activity_t Mailbox::front()
+{
+ return pimpl_->comm_queue.empty() ? nullptr : pimpl_->comm_queue.front();