From: cherierm Date: Thu, 4 Oct 2007 08:06:19 +0000 (+0000) Subject: Now the java processes don't use the native locks X-Git-Tag: v3.3~1019 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7cd83128b3740b3d66ef8d8a2ced0ffa5168efe2 Now the java processes don't use the native locks git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4772 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/context_private.h b/src/xbt/context_private.h index 5c234e6c7d..96a48611dd 100644 --- a/src/xbt/context_private.h +++ b/src/xbt/context_private.h @@ -21,7 +21,7 @@ #include "xbt/context.h" #include "xbt/ex.h" -#if defined(JAVA_SIMGRID) || defined(CONTEXT_THREADS) +#ifdef CONTEXT_THREADS # include "xbt/xbt_os_thread.h" #else # include @@ -41,6 +41,8 @@ typedef struct s_xbt_context { #else # ifdef CONTEXT_THREADS xbt_os_thread_t thread; /* a plain dumb thread (portable to posix or windows) */ + xbt_os_cond_t cond; /* the condition used to synchronize the process */ + xbt_os_mutex_t mutex; /* the mutex used to synchronize the process */ # else ucontext_t uc; /* the thread that execute the code */ char stack[STACK_SIZE]; @@ -48,12 +50,6 @@ typedef struct s_xbt_context { ex_ctx_t *exception; /* exception container -- only in ucontext&java, os_threads deals with it for us otherwise */ # endif /* CONTEXT_THREADS */ #endif /* JAVA_SIMGRID */ - - /* What we need to synchronize the process */ -#if defined(JAVA_SIMGRID) || defined(CONTEXT_THREADS) - xbt_os_cond_t cond; /* the condition used to synchronize the process */ - xbt_os_mutex_t mutex; /* the mutex used to synchronize the process */ -#endif /* What to run */ xbt_main_func_t code; /* the scheduled fonction */ @@ -68,7 +64,6 @@ typedef struct s_xbt_context { int iwannadie; /* Set to true by the context when it wants to commit suicide */ - } s_xbt_context_t;