X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e1213bfe4fb4368952de0f8945fe2b2dc778d346..f885aa29e590cb747421ebfe897310e7e99c8658:/teshsuite/xbt/parallel_log_crashtest.c diff --git a/teshsuite/xbt/parallel_log_crashtest.c b/teshsuite/xbt/parallel_log_crashtest.c index 449002732d..05f724f5cc 100644 --- a/teshsuite/xbt/parallel_log_crashtest.c +++ b/teshsuite/xbt/parallel_log_crashtest.c @@ -1,4 +1,4 @@ -/* $Id: philosopher.c,v 1.7 2007/09/10 15:18:39 mquinson Exp $ */ +/* $Id$ */ /* synchro_crashtest -- tries to crash the logging mecanism by doing // logs*/ @@ -36,10 +36,10 @@ static void crasher_thread(void *arg) { INFO10("%03d (%02d|%02d|%02d|%02d|%02d|%02d|%02d|%02d|%02d)",test_amount-i,id,id,id,id,id,id,id,id,id); } - xbt_mutex_lock(mut_end); + xbt_mutex_acquire(mut_end); running_threads--; xbt_cond_signal(cond_end); - xbt_mutex_unlock(mut_end); + xbt_mutex_release(mut_end); } int crasher (int argc,char *argv[]); @@ -69,10 +69,10 @@ int crasher (int argc,char *argv[]) { } /* wait for them */ - xbt_mutex_lock(mut_end); + xbt_mutex_acquire(mut_end); while (running_threads) xbt_cond_wait(cond_end,mut_end); - xbt_mutex_unlock(mut_end); + xbt_mutex_release(mut_end); gras_exit(); return 0;