Commit 00d77d3b authored by Marian Triebe's avatar Marian Triebe

Add missing calls to `typed_actor_view`

The missing calls are `current_mailbox_element` and `current_sender`.
parent 272669fa
......@@ -108,6 +108,17 @@ public:
return self_->response(std::forward<Ts>(xs)...);
}
/// Returns a pointer to the sender of the current message.
/// @pre `current_mailbox_element() != nullptr`
inline strong_actor_ptr& current_sender() {
return self_->current_sender();
}
/// Returns a pointer to the currently processed mailbox element.
inline mailbox_element* current_mailbox_element() {
return self_->current_mailbox_element();
}
/// @private
actor_control_block* ctrl() const {
CAF_ASSERT(self_ != nullptr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment