X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..7eef625065d0b3af4a64b5665009491426db974f:/src/java/jmsg_process.c diff --git a/src/java/jmsg_process.c b/src/java/jmsg_process.c index 60c346415f..c42080fdc5 100644 --- a/src/java/jmsg_process.c +++ b/src/java/jmsg_process.c @@ -1,20 +1,16 @@ -/* - * $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" #include "jxbt_utilities.h" -#include "xbt/xbt_context_java.h" +#include "simix/smx_context_java.h" XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg); @@ -184,7 +180,7 @@ jboolean jprocess_is_valid(jobject jprocess, JNIEnv * env) return (*env)->GetLongField(env, jprocess, id) ? JNI_TRUE : JNI_FALSE; } -void jprocess_schedule(xbt_context_t context) +void jprocess_schedule(smx_context_t context) { JNIEnv *env; jmethodID id; @@ -196,12 +192,12 @@ void jprocess_schedule(xbt_context_t context) if (!id) return; - (*env)->CallVoidMethod(env, ((xbt_ctx_java_t) context)->jprocess, id); + (*env)->CallVoidMethod(env, ((smx_ctx_java_t) context)->jprocess, id); } -void jprocess_unschedule(xbt_context_t context) +void jprocess_unschedule(smx_context_t context) { JNIEnv *env; jmethodID id; @@ -214,5 +210,5 @@ void jprocess_unschedule(xbt_context_t context) if (!id) return; - (*env)->CallVoidMethod(env, ((xbt_ctx_java_t) context)->jprocess, id); + (*env)->CallVoidMethod(env, ((smx_ctx_java_t) context)->jprocess, id); }