Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add Barrier Python bindings
[simgrid.git] / docs / source / app_s4u.rst
index be1381f..27401a1 100644 (file)
@@ -2527,7 +2527,15 @@ Locking
 ⁣  Barrier
 ================
 
-.. doxygenclass:: simgrid::s4u::Barrier
+.. tabs::
+
+   .. group-tab:: C++
+
+      .. doxygenclass:: simgrid::s4u::Barrier
+
+   .. group-tab:: Python
+
+      .. autoclass:: simgrid.Barrier
 
 .. tabs::
 
@@ -2543,6 +2551,15 @@ Locking
       .. doxygenfunction:: simgrid::s4u::Barrier::create(unsigned int expected_actors)
       .. doxygenfunction:: simgrid::s4u::Barrier::wait()
 
+   .. group-tab:: Python
+
+      .. code-block:: Python
+
+         from simgrid import Barrier
+         barrier = Barrier(2)
+
+      .. automethod:: simgrid.Barrier.wait()
+
    .. group-tab:: C
 
       .. code-block:: C