Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[LUA] Fixed compile time warnings, 2/2
[simgrid.git] / src / bindings / java / jmsg_synchro.h
1 /* Functions related to the java process instances.                         */
2
3 /* Copyright (c) 2012-2015. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef MSG_JSYNCHRO_H
10 #define MSG_JSYNCHRO_H
11
12 #include <jni.h>
13 #include <simgrid/msg.h>
14 #include <simgrid/simix.h>
15
16 SG_BEGIN_DECL()
17
18 JNIEXPORT void JNICALL
19 Java_org_simgrid_msg_Mutex_nativeInit(JNIEnv *env, jclass cls);
20
21 JNIEXPORT void JNICALL
22 Java_org_simgrid_msg_Mutex_init(JNIEnv * env, jobject obj);
23
24 JNIEXPORT void JNICALL
25 Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject obj);
26
27 JNIEXPORT void JNICALL
28 Java_org_simgrid_msg_Mutex_release(JNIEnv * env, jobject obj);
29
30 JNIEXPORT void JNICALL
31 Java_org_simgrid_msg_Mutex_nativeFinalize(JNIEnv * env, jobject obj);
32
33
34 JNIEXPORT void JNICALL
35 Java_org_simgrid_msg_Semaphore_nativeInit(JNIEnv *env, jclass cls);
36 JNIEXPORT void JNICALL
37 Java_org_simgrid_msg_Semaphore_init(JNIEnv * env, jobject obj, jint capacity);
38 JNIEXPORT void JNICALL
39 Java_org_simgrid_msg_Semaphore_acquire(JNIEnv * env, jobject obj, jdouble timeout);
40 JNIEXPORT void JNICALL
41 Java_org_simgrid_msg_Semaphore_release(JNIEnv * env, jobject obj);
42 JNIEXPORT jboolean JNICALL
43 Java_org_simgrid_msg_Semaphore_wouldBlock(JNIEnv * env, jobject obj);
44 JNIEXPORT void JNICALL
45 Java_org_simgrid_msg_Semaphore_nativeFinalize(JNIEnv * env, jobject obj);
46
47 SG_END_DECL()
48
49 #endif                          /* !MSG_JPROCESS_H */