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
Now the java implementation of the msg process don't use the os locks. The functions...
[simgrid.git]
/
src
/
xbt
/
xbt_queue.c
diff --git
a/src/xbt/xbt_queue.c
b/src/xbt/xbt_queue.c
index
a6f6278
..
8321246
100644
(file)
--- a/
src/xbt/xbt_queue.c
+++ b/
src/xbt/xbt_queue.c
@@
-57,7
+57,7
@@
void xbt_queue_free(xbt_queue_t *queue) {
}
/** @brief Get the queue size */
}
/** @brief Get the queue size */
-unsigned long xbt_queue_length(xbt_queue_t queue) {
+unsigned long xbt_queue_length(
const
xbt_queue_t queue) {
unsigned long res;
xbt_mutex_lock(queue->mutex);
res=xbt_dynar_length(queue->data);
unsigned long res;
xbt_mutex_lock(queue->mutex);
res=xbt_dynar_length(queue->data);