X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6e568cfd5b9e6c60c12841ffa644135712cbf4a..c0045ed94c6fe86327acd63f597bf119b9d6aa17:/tools/tesh/run_context.c diff --git a/tools/tesh/run_context.c b/tools/tesh/run_context.c index f9716edb12..42ce5be09b 100644 --- a/tools/tesh/run_context.c +++ b/tools/tesh/run_context.c @@ -340,8 +340,8 @@ void rctx_start(void) { rctx->end_time = -1; rctx->reader_done = 0; - rctx->reader = xbt_os_thread_create(thread_reader,(void*)rctx); - rctx->writer = xbt_os_thread_create(thread_writer,(void*)rctx); + rctx->reader = xbt_os_thread_create("reader",thread_reader,(void*)rctx); + rctx->writer = xbt_os_thread_create("writer",thread_writer,(void*)rctx); } else { /* child */ @@ -370,7 +370,7 @@ void rctx_start(void) { DEBUG2("RCTX: new bg=%p, new fg=%p",old,rctx); DEBUG2("Launch a thread to wait for %s %d",old->cmd,old->pid); - runner = xbt_os_thread_create(rctx_wait,(void*)old); + runner = xbt_os_thread_create(old->cmd,rctx_wait,(void*)old); old->runner = runner; VERB3("Launched thread %p to wait for %s %d", runner,old->cmd, old->pid);