X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7e5b2244d61cd85f8676753635293209595d5f06..92cbaa683aa7824d7ad1b7f1702dec27e1c6eefb:/docs/source/app_s4u.rst diff --git a/docs/source/app_s4u.rst b/docs/source/app_s4u.rst index ea65f530a2..274152b53d 100644 --- a/docs/source/app_s4u.rst +++ b/docs/source/app_s4u.rst @@ -343,14 +343,13 @@ Memory Management For sake of simplicity, we use `RAII `_ -everywhere in S4U. This is an idiom where resources are automatically +for many classes in S4U. This is an idiom where resources are automatically managed through the context. Provided that you never manipulate objects of type Foo directly but always FooPtr references (which are defined as `boost::intrusive_ptr `_ ), you will never have to explicitely release the resource that you use nor to free the memory of unused objects. - Here is a little example: .. code-block:: cpp @@ -365,7 +364,12 @@ Here is a little example: } // The mutex gets automatically freed because the only existing reference gets out of scope -API C++ Reference +Note that Mailboxes, Hosts and Links are not handled thought smart +pointers (yet?). This means that it is currently impossible to destroy a +mailbox or a link. You can still destroy an host (but probably +shouldn't), using :cpp:func:`simgrid::s4u::Host::destroy`. + +C++ API Reference ***************** .. _API_s4u_this_actor: @@ -507,8 +511,6 @@ s4u::Mailbox Please also refer to the :ref:`full doc on s4u::Mailbox `. -.. doxygentypedef:: MailboxPtr - .. doxygenclass:: simgrid::s4u::Mailbox :members: :protected-members: @@ -594,6 +596,13 @@ Class Actor .. autoclass:: simgrid.Actor :members: +========== +Class Comm +========== + +.. autoclass:: simgrid.Comm + :members: + ============ Class Engine ============ @@ -601,6 +610,13 @@ Class Engine .. autoclass:: simgrid.Engine :members: +========== +Class Exec +========== + +.. autoclass:: simgrid.Exec + :members: + ========== Class Host ==========