.. doxygenfunction:: simgrid::s4u::NetZone::add_component(kernel::routing::NetPoint *elm)
.. doxygenfunction:: simgrid::s4u::NetZone::add_route
.. doxygenfunction:: simgrid::s4u::NetZone::get_children() const
- .. doxygenfunction:: simgrid::s4u::NetZone::get_father()
+ .. doxygenfunction:: simgrid::s4u::NetZone::get_parent()
.. group-tab:: C
static void executor(int argc, char* argv[])
{
- /* sg_actor_self_execute() tells SimGrid to pause the calling actor
+ /* sg_actor_execute() tells SimGrid to pause the calling actor
* until its host has computed the amount of flops passed as a parameter */
sg_actor_execute(98095);
XBT_INFO("Done.");
static void privileged(int argc, char* argv[])
{
- /* sg_actor_self_execute_with_priority() specifies that this execution gets a larger share of the resource.
+ /* sg_actor_execute_with_priority() specifies that this execution gets a larger share of the resource.
*
* Since the priority is 2, it computes twice as fast as a regular one.
*
/** @brief Return the name of the sg_host_t. */
XBT_PUBLIC const char* sg_host_get_name(const_sg_host_t host);
-#ifndef DOXYGEN
// ========== User Data ==============
/** @brief Return the user data of a #sg_host_t.
*
* This functions returns the user data associated to @a host if any.
*/
XBT_PUBLIC void* sg_host_get_data(const_sg_host_t host);
-XBT_ATTRIB_DEPRECATED_v330("Please use sg_host_get_data()") XBT_PUBLIC void* sg_host_data(const_sg_host_t host);
+
/** @brief Set the user data of a #sg_host_t.
*
* This functions attach @a data to @a host.
*/
XBT_PUBLIC void sg_host_set_data(sg_host_t host, void* userdata);
+
+#ifndef DOXYGEN
+XBT_ATTRIB_DEPRECATED_v330("Please use sg_host_get_data()") XBT_PUBLIC void* sg_host_data(const_sg_host_t host);
XBT_ATTRIB_DEPRECATED_v330("Please use sg_host_set_data()") XBT_PUBLIC
void sg_host_data_set(sg_host_t host, void* userdata);
#endif
/** @brief Retrieves the name of that netzone as a C string */
const char* get_cname() const;
- XBT_ATTRIB_DEPRECATED_v331("Please use get_parent()") NetZone* get_father();
+ XBT_ATTRIB_DEPRECATED_v331("Please use get_parent()") NetZone* get_father() const;
NetZone* get_parent() const;
NetZone* set_parent(const NetZone* parent);
}
/** @brief Returns the process from PID. */
-smx_actor_t SIMIX_process_from_PID(aid_t pid)
+smx_actor_t SIMIX_process_from_PID(aid_t pid) // XBT_ATTRIB_DEPRECATD_v331
{
return simgrid::kernel::actor::ActorImpl::by_pid(pid);
}
}
#ifndef DOXYGEN
-void Host::sendto(Host* dest, double byte_amount) // deprecated 331
+void Host::sendto(Host* dest, double byte_amount) // XBT_ATTRIB_DEPRECATED_v331
{
Comm::sendto_async(this, dest, byte_amount)->wait();
}
-CommPtr Host::sendto_async(Host* dest, double byte_amount) // deprecated 331
+CommPtr Host::sendto_async(Host* dest, double byte_amount) // XBT_ATTRIB_DEPRECATED_v331
{
return Comm::sendto_async(this, dest, byte_amount);
}
-void Host::send_to(Host* dest, double byte_amount) // deprecated 330
+void Host::send_to(Host* dest, double byte_amount) // XBT_ATTRIB_DEPRECATED_v330
{
Comm::sendto(this, dest, byte_amount);
}
return res;
}
-NetZone* NetZone::add_child(NetZone* new_zone)
+NetZone* NetZone::add_child(NetZone* new_zone) // XBT_ATTRIB_DEPRECATED_v332
{
new_zone->set_parent(this);
return this;
return pimpl_->get_cname();
}
-NetZone* NetZone::get_father()
+NetZone* NetZone::get_father() const // XBT_ATTRIB_DEPRECATED_v331
{
return pimpl_->get_parent()->get_iface();
}
*
* Note: The dynar won't be usable afterwards.
*/
-void* xbt_dynar_to_array(xbt_dynar_t dynar)
+void* xbt_dynar_to_array(xbt_dynar_t dynar) // XBT_ATTRIB_DEPRECATED_v331
{
void* res;
xbt_dynar_shrink(dynar, 1);