From 6508dac8abd72a02679154467f7e88996630e043 Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 16 Mar 2007 14:15:13 +0000 Subject: [PATCH 1/1] 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 --- src/xbt/xbt_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){ -- 2.20.1