projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: add missing destroy functions to queues/stack APIs
[userspace-rcu.git]
/
urcu
/
wfstack.h
diff --git
a/urcu/wfstack.h
b/urcu/wfstack.h
index fc0b44b791fcf218c56714711e235cc40465296f..5ef8bab04825091232e939aff9d75e19b929f11c 100644
(file)
--- a/
urcu/wfstack.h
+++ b/
urcu/wfstack.h
@@
-94,6
+94,7
@@
struct cds_wfs_stack {
#define cds_wfs_node_init _cds_wfs_node_init
#define cds_wfs_init _cds_wfs_init
#define cds_wfs_node_init _cds_wfs_node_init
#define cds_wfs_init _cds_wfs_init
+#define cds_wfs_destroy _cds_wfs_destroy
#define cds_wfs_empty _cds_wfs_empty
#define cds_wfs_push _cds_wfs_push
#define cds_wfs_empty _cds_wfs_empty
#define cds_wfs_push _cds_wfs_push
@@
-131,10
+132,17
@@
struct cds_wfs_stack {
extern void cds_wfs_node_init(struct cds_wfs_node *node);
/*
extern void cds_wfs_node_init(struct cds_wfs_node *node);
/*
- * cds_wfs_init: initialize wait-free stack.
+ * cds_wfs_init: initialize wait-free stack (with lock). Pair with
+ * cds_wfs_destroy().
*/
extern void cds_wfs_init(struct cds_wfs_stack *s);
*/
extern void cds_wfs_init(struct cds_wfs_stack *s);
+/*
+ * cds_wfs_destroy: destroy wait-free stack (with lock). Pair with
+ * cds_wfs_init().
+ */
+extern void cds_wfs_destroy(struct cds_wfs_stack *s);
+
/*
* cds_wfs_empty: return whether wait-free stack is empty.
*
/*
* cds_wfs_empty: return whether wait-free stack is empty.
*
This page took
0.027873 seconds
and
4
git commands to generate.