- pthread_mutex_unlock(&(context->mutex));
- #elif defined(USE_WIN_THREADS)
- /* Launch the thread */
- DEBUG1("**[%p]** Locking ****",context);
- win_thread_mutex_lock(&(context->mutex));
- DEBUG1("**[%p]** Windows thread create ****",context);
- xbt_assert0(!win_thread_create(&(context->thread), __context_wrapper, context),"Unable to create a thread.");
- DEBUG2("**[%p]** Windows created : %p ****",context,(void*)(context->thread));
- DEBUG1("**[%p]** Going to jail ****",context);
- win_thread_cond_wait(&(context->cond), &(context->mutex));
- DEBUG1("**[%p]** Unlocking ****",context);
- win_thread_mutex_unlock(&(context->mutex));