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
1 class org.simgrid.msg.Mutex
2 ===========================
3
4 .. java:package:: org.simgrid.msg
5    :noindex:
6
7 .. java:type:: public class Mutex
8
9    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!
10
11 Constructors
12 ------------
13 Mutex
14 ^^^^^
15
16 .. java:constructor:: public Mutex()
17    :outertype: Mutex
18
19 Methods
20 -------
21 acquire
22 ^^^^^^^
23
24 .. java:method:: public native void acquire()
25    :outertype: Mutex
26
27 finalize
28 ^^^^^^^^
29
30 .. java:method:: @Deprecated @Override protected void finalize() throws Throwable
31    :outertype: Mutex
32
33 nativeInit
34 ^^^^^^^^^^
35
36 .. java:method:: public static native void nativeInit()
37    :outertype: Mutex
38
39    Class initializer, to initialize various JNI stuff
40
41 release
42 ^^^^^^^
43
44 .. java:method:: public native void release()
45    :outertype: Mutex
46