Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[java] Fix RngStream.setPackageSeed
[simgrid.git] / src / bindings / java / jmsg_comm.h
1 /* Functions related to the java comm 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_JCOMM_H
10 #define MSG_JCOMM_H
11 #include <jni.h>
12 #include <simgrid/msg.h>
13
14 SG_BEGIN_DECL()
15
16 /** This function binds the task associated with the communication to the java communication object. */
17 void jcomm_bind_task(JNIEnv *env, jobject jcomm);
18
19 JNIEXPORT void JNICALL Java_org_simgrid_msg_Comm_nativeInit(JNIEnv *env, jclass cls);
20
21 JNIEXPORT void JNICALL Java_org_simgrid_msg_Comm_nativeFinalize(JNIEnv *env, jobject jcomm);
22
23 JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Comm_test(JNIEnv *env, jobject jcomm);
24
25 JNIEXPORT void JNICALL Java_org_simgrid_msg_Comm_waitCompletion(JNIEnv *env, jobject jcomm, jdouble timeout);
26
27 SG_END_DECL()
28 #endif /* MSG_JCOMM_H */