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
Fix BoostContext #include
[simgrid.git]
/
include
/
xbt
/
fifo.h
diff --git
a/include/xbt/fifo.h
b/include/xbt/fifo.h
index
9dfd700
..
1f152d5
100644
(file)
--- a/
include/xbt/fifo.h
+++ b/
include/xbt/fifo.h
@@
-79,8
+79,8
@@
XBT_PUBLIC(xbt_fifo_item_t) xbt_fifo_get_prev_item(xbt_fifo_item_t i);
* asserts and stuff
* \param f a list (#xbt_fifo_t)
* \param i a bucket (#xbt_fifo_item_t)
* asserts and stuff
* \param f a list (#xbt_fifo_t)
* \param i a bucket (#xbt_fifo_item_t)
- * \param type a type
* \param n an object of type \a type.
* \param n an object of type \a type.
+ * \param type the type of objects contained in the fifo
* @hideinitializer
*
* Iterates over the whole list.
* @hideinitializer
*
* Iterates over the whole list.
@@
-111,4
+111,16
@@
XBT_PUBLIC(xbt_fifo_item_t) xbt_fifo_getPrevItem(xbt_fifo_item_t i);
SG_END_DECL()
SG_END_DECL()
+
+#ifdef __cplusplus
+namespace simgrid {
+namespace xbt {
+ inline void destroy(xbt_fifo_t f)
+ {
+ xbt_fifo_free(f);
+ }
+}
+}
+#endif
+
#endif /* _XBT_FIFO_H */
#endif /* _XBT_FIFO_H */