From: mquinson Date: Mon, 19 May 2008 11:33:35 +0000 (+0000) Subject: Also release the mutex when I didn't got what I wanted X-Git-Tag: v3.3~499 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6713c5277547eab779ccbac88e16fb15ab0b39f9 Also release the mutex when I didn't got what I wanted git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5437 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/xbt_queue.c b/src/xbt/xbt_queue.c index caad30aa35..d3bc436de0 100644 --- a/src/xbt/xbt_queue.c +++ b/src/xbt/xbt_queue.c @@ -288,6 +288,7 @@ void xbt_queue_shift_timed(xbt_queue_t queue, void* const dst,double delay) { } if (xbt_dynar_length(queue->data) == 0) { + xbt_mutex_release(queue->mutex); THROW1(timeout_error,0,"Timeout (%f) elapsed, but queue still empty",delay); }