You create actors either:
- - Directly with :cpp:func:`sg_actor_create()` followed by :cpp:func:`sg_actor_start`.
+ - Directly with :cpp:func:`sg_actor_create` followed by :cpp:func:`sg_actor_start`.
- From XML with :cpp:func:`simgrid_register_function` and then :cpp:func:`simgrid_load_deployment`.
.. example-tab:: examples/python/actor-create/actor-create_d.xml
This file is not really interesting: the important matter is in the XML file.
- .. example-tab:: examples/c/actor-lifetime/actor-lifetime.c
+ .. example-tab:: examples/c/actor-lifetime/actor-lifetime.c
This file is not really interesting: the important matter is in the XML file.
.. example-tab:: examples/c/comm-wait/comm-wait.c
- See also :cpp:func:`sg_mailbox_put_async()` and :cpp:func:`sg_comm__wait()`.
+ See also :cpp:func:`sg_mailbox_put_async()` and :cpp:func:`sg_comm_wait()`.
- **Waiting for communications with timeouts:**
This example is very similar to the previous one, simply adding how to declare timeouts when waiting on asynchronous communication.
.. example-tab:: examples/cpp/comm-waituntil/s4u-comm-waituntil.cpp
- See also :cpp:func:`simgrid::s4u::Mailbox::wait_until()` and :cpp:func:`simgrid::s4u::Comm::wait_for()`.
+ See also :cpp:func:`simgrid::s4u::Activity::wait_until()` and :cpp:func:`simgrid::s4u::Comm::wait_for()`.
- **Suspending communications:**
The ``suspend()`` and ``resume()`` functions allow to block the
.. example-tab:: examples/c/platform-properties/platform-properties.c
- - :cpp:func:`sg_actor_get_property()` and :cpp:func:`sg_actor_set_property()`
- - :cpp:func:`sg_host_get_property()` and :cpp:func:sg_host_set_property()`
- - :cpp:func:`sg_link_get_property()` and :cpp:func:`sg_link_set_property()`
- - :cpp:func:`sg_link_get_property()` and :cpp:func:`sg_link_set_property()`
+ - :cpp:func:`sg_actor_get_property_value()`
+ - :cpp:func:`sg_host_get_property_value()` and :cpp:func:sg_host_set_property_value()`
+ - :cpp:func:`sg_zone_get_property_value()` and :cpp:func:`sg_zone_set_property_value()`
.. group-tab:: XML
.. |br| raw:: html
<br />
-
-.. |cpp| image:: /img/lang_cpp.png
- :align: middle
- :width: 12
-
-.. |py| image:: /img/lang_python.png
- :align: middle
- :width: 12