Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add the files generated by javasphinx in the git
[simgrid.git] / docs / source / java / org / simgrid / msg / Mutex.rst
diff --git a/docs/source/java/org/simgrid/msg/Mutex.rst b/docs/source/java/org/simgrid/msg/Mutex.rst
new file mode 100644 (file)
index 0000000..d4a3df8
--- /dev/null
@@ -0,0 +1,46 @@
+class org.simgrid.msg.Mutex
+===========================
+
+.. java:package:: org.simgrid.msg
+   :noindex:
+
+.. java:type:: public class Mutex
+
+   A mutex implemented on top of SimGrid synchronization mechanisms. You can use it exactly the same way that you use the mutexes, but to handle the interactions between the processes within the simulation. Don't mix simgrid synchronization with Java native one, or it will deadlock!
+
+Constructors
+------------
+Mutex
+^^^^^
+
+.. java:constructor:: public Mutex()
+   :outertype: Mutex
+
+Methods
+-------
+acquire
+^^^^^^^
+
+.. java:method:: public native void acquire()
+   :outertype: Mutex
+
+finalize
+^^^^^^^^
+
+.. java:method:: @Deprecated @Override protected void finalize() throws Throwable
+   :outertype: Mutex
+
+nativeInit
+^^^^^^^^^^
+
+.. java:method:: public static native void nativeInit()
+   :outertype: Mutex
+
+   Class initializer, to initialize various JNI stuff
+
+release
+^^^^^^^
+
+.. java:method:: public native void release()
+   :outertype: Mutex
+