Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Hacking to make it work with broken AMD64 contexts. To try!
[simgrid.git] / src / xbt / context.c
index 59b2df2..56936cd 100644 (file)
@@ -180,7 +180,7 @@ static void __context_exit(xbt_context_t context ,int value)
 
 static void *
 __context_wrapper(void* c) {
-       xbt_context_t context = (xbt_context_t)c;
+       xbt_context_t context = (xbt_context_t) current_context;
        
        #ifdef CONTEXT_THREADS
        context->thread = xbt_thread_self();