type of the pointee. Untyped functions are deprecated. Use Mailbox::get<void>()
or Mailbox::get_async<void>() if you really want to play with void*.
- Unify the interface of Activity::on_{start/activity}
+- New function: Comm::get_dst_data()
----------------------------------------------------------------------------
*
* That's a buffer where the sent data will be copied */
CommPtr set_dst_data(void** buff, size_t size);
+ /** Retrieve where the data will be copied on the receiver side */
+ void* get_dst_data();
/** Retrieve the mailbox on which this comm acts */
Mailbox* get_mailbox() const;
dst_buff_ = buff;
return this;
}
+void* Comm::get_dst_data()
+{
+ return dst_buff_;
+}
size_t Comm::get_dst_data_size() const
{
- xbt_assert(state_ == State::FINISHED, "You cannot use %s before your communication terminated", __FUNCTION__);
return dst_buff_size_;
}
CommPtr Comm::set_dst_data(void** buff, size_t size)