#include "xbt/log.h"
#include "xbt/dynar.h"
#include "xbt/xbt_os_thread.h"
+#include "xbt/ex_interface.h"
#include "java/jxbt_context.h"
#include "java/jmsg.h"
#include "java/jmsg_process.h"
if(context->exception)
free(context->exception);
+ free(context->name);
free(context);
context = NULL;
}
xbt_context_t
-xbt_context_new(xbt_context_function_t code,
+xbt_context_new(const char *name, xbt_main_func_t code,
void_f_pvoid_t startup_func, void *startup_arg,
void_f_pvoid_t cleanup_func, void *cleanup_arg,
int argc, char *argv[]) {
xbt_context_t context = xbt_new0(s_xbt_context_t,1);
context->code = code;
+ context->name = xbt_strdup(name);
context->mutex = xbt_os_mutex_init();
context->cond = xbt_os_cond_init();