From: mquinson Date: Fri, 16 Mar 2007 14:15:13 +0000 (+0000) Subject: Use xbt_thread_yield explicitely instead of Sleep(0). This is the same effect, but... X-Git-Tag: v3.3~2056 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6508dac8abd72a02679154467f7e88996630e043 Use xbt_thread_yield explicitely instead of Sleep(0). This is the same effect, but the intention of this is more clear (at least to me ;) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3303 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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){