X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f4f03348bd07609e258eb3b545bdafc2c881847..4e46fb705a7ae3d90e14ea3b9a0cc9b4e9007f99:/src/bindings/java/jmsg_synchro.h diff --git a/src/bindings/java/jmsg_synchro.h b/src/bindings/java/jmsg_synchro.h index 6d66626810..a5172a1ca0 100644 --- a/src/bindings/java/jmsg_synchro.h +++ b/src/bindings/java/jmsg_synchro.h @@ -1,7 +1,6 @@ -/* Functions related to the java process instances. */ +/* Java bindings of the Synchronization API. */ -/* Copyright (c) 2012-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2012-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -9,41 +8,22 @@ #ifndef MSG_JSYNCHRO_H #define MSG_JSYNCHRO_H +#include "xbt/base.h" #include -#include -#include SG_BEGIN_DECL() -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Mutex_nativeInit(JNIEnv *env, jclass cls); - -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Mutex_init(JNIEnv * env, jobject obj); - -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject obj); - -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Mutex_release(JNIEnv * env, jobject obj); - -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Mutex_nativeFinalize(JNIEnv * env, jobject obj); - - -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Semaphore_nativeInit(JNIEnv *env, jclass cls); -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Semaphore_init(JNIEnv * env, jobject obj, jint capacity); -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Semaphore_acquire(JNIEnv * env, jobject obj, jdouble timeout); -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Semaphore_release(JNIEnv * env, jobject obj); -JNIEXPORT jboolean JNICALL -Java_org_simgrid_msg_Semaphore_wouldBlock(JNIEnv * env, jobject obj); -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Semaphore_nativeFinalize(JNIEnv * env, jobject obj); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_nativeInit(JNIEnv *env, jclass cls); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_init(JNIEnv * env, jobject obj); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject obj); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_release(JNIEnv * env, jobject obj); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_nativeFinalize(JNIEnv * env, jobject obj); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Semaphore_nativeInit(JNIEnv *env, jclass cls); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Semaphore_init(JNIEnv * env, jobject obj, jint capacity); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Semaphore_acquire(JNIEnv * env, jobject obj, jdouble timeout); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Semaphore_release(JNIEnv * env, jobject obj); +JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Semaphore_wouldBlock(JNIEnv * env, jobject obj); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Semaphore_nativeFinalize(JNIEnv * env, jobject obj); SG_END_DECL() - -#endif /* !MSG_JPROCESS_H */ +#endif