X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d282280b34c91d82c661c9b569bc0147da4662e3..6508dac8abd72a02679154467f7e88996630e043:/src/xbt/xbt_thread.c diff --git a/src/xbt/xbt_thread.c b/src/xbt/xbt_thread.c index 7da325291b..b35218df5a 100644 --- a/src/xbt/xbt_thread.c +++ b/src/xbt/xbt_thread.c @@ -388,7 +388,7 @@ void xbt_thcond_signal(xbt_thcond_t cond) { if(!SetEvent(cond->events[SIGNAL])) THROW0(system_error,0,"SetEvent failed"); - Sleep(0); + xbt_thread_yield(); } void xbt_thcond_broadcast(xbt_thcond_t cond){