git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3158
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
if(!current_context){
current_context = init_context = xbt_new0(s_xbt_context_t,1);
if(!current_context){
current_context = init_context = xbt_new0(s_xbt_context_t,1);
- /*#ifdef USE_WIN_THREADS
- win_thread_mutex_init(&(current_context->mutex));
- win_thread_cond_init(&(current_context->cond));
- #endif*/
-
init_context->exception = xbt_new(ex_ctx_t,1);
XBT_CTX_INITIALIZE(init_context->exception);
__xbt_ex_ctx = __context_ex_ctx;
init_context->exception = xbt_new(ex_ctx_t,1);
XBT_CTX_INITIALIZE(init_context->exception);
__xbt_ex_ctx = __context_ex_ctx;
void xbt_context_exit(void) {
xbt_context_t context=NULL;
void xbt_context_exit(void) {
xbt_context_t context=NULL;
- /*#ifdef USE_WIN_THREADS
- win_thread_mutex_destroy(&(current_context->mutex));
- win_thread_cond_destroy(&(current_context->cond));
- #endif*/
xbt_context_empty_trash();
xbt_swag_free(context_to_destroy);
xbt_context_empty_trash();
xbt_swag_free(context_to_destroy);