#include <xbt/function_types.h>
-#include <simix/simix.h>
+#include <simgrid/simix.h>
#include "smx_context_java.h"
#include "xbt/dynar.h"
smx_ctx_base_free(context);
}
+
void smx_ctx_java_stop(smx_context_t context)
{
- xbt_assert(context == my_current_context,
- "The context to stop must be the current one");
+ xbt_assert(context == my_current_context,
+ "The context to stop must be the current one");
/* I am the current process and I am dying */
+
smx_ctx_base_stop(context);
XBT_DEBUG("I am dying");
/* suspend myself again, smx_ctx_java_free() will destroy me later
* from maeastro */
jprocess_unschedule(context);
- xbt_die("This function was not supposed to return");
+ XBT_DEBUG("Java stop finished");
}
static void smx_ctx_java_suspend(smx_context_t context)