Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Do not execute MCer code in MCed mode in MC_remove_ignore_heap()
[simgrid.git] / src / bindings / java / jmsg_synchro.h
1 /* Functions related to the java process instances.                         */
2
3 /* Copyright (c) 2012-2014. 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 JNIEXPORT void JNICALL
17 Java_org_simgrid_msg_Mutex_nativeInit(JNIEnv *env, jclass cls);
18
19 JNIEXPORT void JNICALL
20 Java_org_simgrid_msg_Mutex_init(JNIEnv * env, jobject obj);
21
22 JNIEXPORT void JNICALL
23 Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject obj);
24
25 JNIEXPORT void JNICALL
26 Java_org_simgrid_msg_Mutex_release(JNIEnv * env, jobject obj);
27
28 JNIEXPORT void JNICALL
29 Java_org_simgrid_msg_Mutex_exit(JNIEnv * env, jobject obj);
30
31 JNIEXPORT void JNICALL
32 Java_org_simgrid_msg_Semaphore_nativeInit(JNIEnv *env, jclass cls);
33 JNIEXPORT void JNICALL
34 Java_org_simgrid_msg_Semaphore_init(JNIEnv * env, jobject obj, jint capacity);
35 JNIEXPORT void JNICALL
36 Java_org_simgrid_msg_Semaphore_acquire(JNIEnv * env, jobject obj, jdouble timeout);
37 JNIEXPORT void JNICALL
38 Java_org_simgrid_msg_Semaphore_release(JNIEnv * env, jobject obj);
39 JNIEXPORT jboolean JNICALL
40 Java_org_simgrid_msg_Semaphore_wouldBlock(JNIEnv * env, jobject obj);
41 JNIEXPORT void JNICALL
42 Java_org_simgrid_msg_Mutex_destroy(JNIEnv * env, jobject obj);
43 #endif                          /* !MSG_JPROCESS_H */