A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Some modifications and some files added.
[simgrid.git]
/
src
/
xbt
/
xbt_queue.c
diff --git
a/src/xbt/xbt_queue.c
b/src/xbt/xbt_queue.c
index
6a48254
..
caad30a
100644
(file)
--- a/
src/xbt/xbt_queue.c
+++ b/
src/xbt/xbt_queue.c
@@
-287,6
+287,10
@@
void xbt_queue_shift_timed(xbt_queue_t queue, void* const dst,double delay) {
}
}
+ if (xbt_dynar_length(queue->data) == 0) {
+ THROW1(timeout_error,0,"Timeout (%f) elapsed, but queue still empty",delay);
+ }
+
xbt_dynar_shift(queue->data,dst);
xbt_cond_signal(queue->not_full);
xbt_mutex_release(queue->mutex);