From c665004452a6a694cea474e402376893b774eca1 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 20 Oct 2009 13:10:04 +0000 Subject: [PATCH] when requested to acquire a cond or semaphore with max_duration=0, call the regular blocking function instead of the internal code so that the dummy action in charge of detecting host failures get created git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6808 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_synchro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simix/smx_synchro.c b/src/simix/smx_synchro.c index 8272cce96c..5c95b5da26 100644 --- a/src/simix/smx_synchro.c +++ b/src/simix/smx_synchro.c @@ -263,7 +263,7 @@ void SIMIX_cond_wait_timeout(smx_cond_t cond, smx_mutex_t mutex, } } else - __SIMIX_cond_wait(cond); + SIMIX_cond_wait(cond,NULL); /* get the mutex again if necessary */ if(mutex != NULL) @@ -491,5 +491,5 @@ void SIMIX_sem_acquire_timeout(smx_sem_t sem, double max_duration) { } } else - SIMIX_sem_block_onto(sem); + SIMIX_sem_acquire(sem); } -- 2.20.1