A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
using shared Task to exchange data
[simgrid.git]
/
src
/
java
/
jmsg_process.h
diff --git
a/src/java/jmsg_process.h
b/src/java/jmsg_process.h
index
0971301
..
5056c45
100644
(file)
--- a/
src/java/jmsg_process.h
+++ b/
src/java/jmsg_process.h
@@
-9,12
+9,13
@@
* This contains the declarations of the functions in relation with the java
* process instance.
*/
* This contains the declarations of the functions in relation with the java
* process instance.
*/
-
+
#ifndef MSG_JPROCESS_H
#define MSG_JPROCESS_H
#include <jni.h>
#include "msg/msg.h"
#ifndef MSG_JPROCESS_H
#define MSG_JPROCESS_H
#include <jni.h>
#include "msg/msg.h"
+#include "simix/simix.h"
/**
* This function returns a global reference to the java process instance
/**
* This function returns a global reference to the java process instance
@@
-25,9
+26,8
@@
*
* @return The global reference to the original java process
* instance.
*
* @return The global reference to the original java process
* instance.
- */
-jobject
-jprocess_new_global_ref(jobject jprocess,JNIEnv* env);
+ */
+jobject jprocess_new_global_ref(jobject jprocess, JNIEnv * env);
/**
* This function delete a global reference to a java process instance.
/**
* This function delete a global reference to a java process instance.
@@
-39,8
+39,7
@@
jprocess_new_global_ref(jobject jprocess,JNIEnv* env);
* @see jprocess_join()
* @see jprocess_exit()
*/
* @see jprocess_join()
* @see jprocess_exit()
*/
-void
-jprocess_delete_global_ref(jobject jprocess,JNIEnv* env);
+void jprocess_delete_global_ref(jobject jprocess, JNIEnv * env);
/**
*
/**
*
@@
-58,9
+57,8
@@
jprocess_delete_global_ref(jobject jprocess,JNIEnv* env);
*
* @return If the java process is alive the function returns
* true. Otherwise the function returns false.
*
* @return If the java process is alive the function returns
* true. Otherwise the function returns false.
- */
-jboolean
-jprocess_is_alive(jobject jprocess,JNIEnv* env);
+ */
+jboolean jprocess_is_alive(jobject jprocess, JNIEnv * env);
/**
* This function waits for a java process to terminate.
/**
* This function waits for a java process to terminate.
@@
-74,8
+72,7
@@
jprocess_is_alive(jobject jprocess,JNIEnv* env);
* NotSuchMethodException.
*
*/
* NotSuchMethodException.
*
*/
-void
-jprocess_join(jobject jprocess,JNIEnv* env);
+void jprocess_join(jobject jprocess, JNIEnv * env);
/**
* This function starts the specified java process.
/**
* This function starts the specified java process.
@@
-88,8
+85,7
@@
jprocess_join(jobject jprocess,JNIEnv* env);
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
-void
-jprocess_start(jobject jprocess,JNIEnv* env);
+void jprocess_start(jobject jprocess, JNIEnv * env);
/**
* This function forces the java process to stop.
/**
* This function forces the java process to stop.
@@
-102,8
+98,7
@@
jprocess_start(jobject jprocess,JNIEnv* env);
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
-void
-jprocess_exit(jobject jprocess,JNIEnv* env);
+void jprocess_exit(jobject jprocess, JNIEnv * env);
/**
* This function associated a native process to a java process instance.
/**
* This function associated a native process to a java process instance.
@@
-116,9
+111,8
@@
jprocess_exit(jobject jprocess,JNIEnv* env);
* the ClassNotFoundException. If the field bind of
* this class is not found the function throws the exception
* NotSuchFieldException.
* the ClassNotFoundException. If the field bind of
* this class is not found the function throws the exception
* NotSuchFieldException.
- */
-void
-jprocess_bind(jobject jprocess,m_process_t process,JNIEnv* env);
+ */
+void jprocess_bind(jobject jprocess, m_process_t process, JNIEnv * env);
/**
* This function returns a native process from a java process instance.
/**
* This function returns a native process from a java process instance.
@@
-134,8
+128,7
@@
jprocess_bind(jobject jprocess,m_process_t process,JNIEnv* env);
* this class is not found the function throws the exception
* NotSuchFieldException.
*/
* this class is not found the function throws the exception
* NotSuchFieldException.
*/
-m_process_t
-jprocess_to_native_process(jobject jprocess,JNIEnv* env);
+m_process_t jprocess_to_native_process(jobject jprocess, JNIEnv * env);
/**
* This function gets the id of the specified java process.
/**
* This function gets the id of the specified java process.
@@
-150,8
+143,7
@@
jprocess_to_native_process(jobject jprocess,JNIEnv* env);
*
* @return The id of the specified java process.
*/
*
* @return The id of the specified java process.
*/
-jlong
-jprocess_get_id(jobject jprocess,JNIEnv* env);
+jlong jprocess_get_id(jobject jprocess, JNIEnv * env);
/**
* This function tests if a java process instance is valid.
/**
* This function tests if a java process instance is valid.
@@
-164,8
+156,7
@@
jprocess_get_id(jobject jprocess,JNIEnv* env);
* @return If the java process is valid the function returns true.
* Otherwise the function returns false.
*/
* @return If the java process is valid the function returns true.
* Otherwise the function returns false.
*/
-jboolean
-jprocess_is_valid(jobject jprocess,JNIEnv* env);
+jboolean jprocess_is_valid(jobject jprocess, JNIEnv * env);
/**
* This function gets the name of the specified java process.
/**
* This function gets the name of the specified java process.
@@
-180,8
+171,7
@@
jprocess_is_valid(jobject jprocess,JNIEnv* env);
*
* @return The name of the specified java process.
*/
*
* @return The name of the specified java process.
*/
-jstring
-jprocess_get_name(jobject jprocess,JNIEnv* env);
+jstring jprocess_get_name(jobject jprocess, JNIEnv * env);
/**
* This function yields the specified java process.
/**
* This function yields the specified java process.
@@
-194,8
+184,7
@@
jprocess_get_name(jobject jprocess,JNIEnv* env);
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
-void
-jprocess_yield(jobject jprocess,JNIEnv* env);
+void jprocess_yield(jobject jprocess, JNIEnv * env);
/**
* This function locks the mutex of the specified java process.
/**
* This function locks the mutex of the specified java process.
@@
-208,8
+197,7
@@
jprocess_yield(jobject jprocess,JNIEnv* env);
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
-void
-jprocess_lock_mutex(jobject jprocess,JNIEnv* env);
+void jprocess_lock_mutex(jobject jprocess, JNIEnv * env);
/**
* This function unlocks the mutex of the specified java process.
/**
* This function unlocks the mutex of the specified java process.
@@
-222,8
+210,7
@@
jprocess_lock_mutex(jobject jprocess,JNIEnv* env);
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
-void
-jprocess_unlock_mutex(jobject jprocess,JNIEnv* env);
+void jprocess_unlock_mutex(jobject jprocess, JNIEnv * env);
/**
* This function signals the condition of the mutex of the specified java process.
/**
* This function signals the condition of the mutex of the specified java process.
@@
-236,8
+223,7
@@
jprocess_unlock_mutex(jobject jprocess,JNIEnv* env);
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
-void
-jprocess_signal_cond(jobject jprocess,JNIEnv* env);
+void jprocess_signal_cond(jobject jprocess, JNIEnv * env);
/**
* This function waits the condition of the mutex of the specified java process.
/**
* This function waits the condition of the mutex of the specified java process.
@@
-250,8
+236,11
@@
jprocess_signal_cond(jobject jprocess,JNIEnv* env);
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
* this class is not found the function throws the exception
* NotSuchMethodException.
*/
-void
-jprocess_wait_cond(jobject jprocess,JNIEnv* env);
+void jprocess_wait_cond(jobject jprocess, JNIEnv * env);
+
+void jprocess_schedule(smx_context_t context);
+
+void jprocess_unschedule(smx_context_t context);
#endif /* !MSG_JPROCESS_H */
#endif /* !MSG_JPROCESS_H */