-/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier All right 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.
- *
- * This contains the implementation of the functions in relation with the java
- * process instance.
- */
+/* Functions related to the java process instances. */
+
+/* Copyright (c) 2007, 2008, 2009, 2010. 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. */
#include "jmsg_process.h"
#include "jmsg.h"
jboolean jprocess_is_alive(jobject jprocess, JNIEnv * env)
{
jmethodID id =
- jxbt_get_smethod(env, "simgrid/msg/Process", "isAlive", "()Z");
+ jxbt_get_smethod(env, "simgrid/msg/Process", "isAlive", "()Z");
if (!id)
return 0;
void jprocess_join(jobject jprocess, JNIEnv * env)
{
- jmethodID id = jxbt_get_smethod(env, "simgrid/msg/Process", "join", "()V");
+ jmethodID id =
+ jxbt_get_smethod(env, "simgrid/msg/Process", "join", "()V");
if (!id)
return;
void jprocess_exit(jobject jprocess, JNIEnv * env)
{
jmethodID id =
- jxbt_get_smethod(env, "simgrid/msg/Process", "interrupt", "()V");
+ jxbt_get_smethod(env, "simgrid/msg/Process", "interrupt", "()V");
if (!id)
return;
void jprocess_yield(jobject jprocess, JNIEnv * env)
{
jmethodID id =
- jxbt_get_smethod(env, "simgrid/msg/Process", "switchProcess", "()V");
+ jxbt_get_smethod(env, "simgrid/msg/Process", "switchProcess", "()V");
if (!id)
return;
void jprocess_lock_mutex(jobject jprocess, JNIEnv * env)
{
jmethodID id =
- jxbt_get_smethod(env, "simgrid/msg/Process", "lockMutex", "()V");
+ jxbt_get_smethod(env, "simgrid/msg/Process", "lockMutex", "()V");
if (!id)
return;
void jprocess_unlock_mutex(jobject jprocess, JNIEnv * env)
{
jmethodID id =
- jxbt_get_smethod(env, "simgrid/msg/Process", "unlockMutex", "()V");
+ jxbt_get_smethod(env, "simgrid/msg/Process", "unlockMutex", "()V");
if (!id)
return;
void jprocess_signal_cond(jobject jprocess, JNIEnv * env)
{
jmethodID id =
- jxbt_get_smethod(env, "simgrid/msg/Process", "signalCond", "()V");
+ jxbt_get_smethod(env, "simgrid/msg/Process", "signalCond", "()V");
if (!id)
return;
void jprocess_wait_cond(jobject jprocess, JNIEnv * env)
{
jmethodID id =
- jxbt_get_smethod(env, "simgrid/msg/Process", "waitCond", "()V");
+ jxbt_get_smethod(env, "simgrid/msg/Process", "waitCond", "()V");
if (!id)
return;
void jprocess_start(jobject jprocess, JNIEnv * env)
{
- jmethodID id = jxbt_get_smethod(env, "simgrid/msg/Process", "start", "()V");
+ jmethodID id =
+ jxbt_get_smethod(env, "simgrid/msg/Process", "start", "()V");
if (!id)
return;
jstring jprocess_get_name(jobject jprocess, JNIEnv * env)
{
- jfieldID id =
- jxbt_get_sfield(env, "simgrid/msg/Process", "name", "Ljava/lang/String;");
+ jfieldID id = jxbt_get_sfield(env, "simgrid/msg/Process", "name",
+ "Ljava/lang/String;");
jobject jname;
if (!id)