projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix c99 compatibility: use __typeof__ instead of typeof in public headers
[urcu.git]
/
urcu
/
static
/
wfstack.h
diff --git
a/urcu/static/wfstack.h
b/urcu/static/wfstack.h
index 79ed3f774446e042de152ed7c04a7a43cf5aa65b..cb68a59a16d8dc270355d1b6b29506d2120c812f 100644
(file)
--- a/
urcu/static/wfstack.h
+++ b/
urcu/static/wfstack.h
@@
-56,8
+56,11
@@
void _cds_wfs_init(struct cds_wfs_stack *s)
assert(!ret);
}
assert(!ret);
}
+/*
+ * Returns 0 if stack was empty, 1 otherwise.
+ */
static inline
static inline
-
void
_cds_wfs_push(struct cds_wfs_stack *s, struct cds_wfs_node *node)
+
int
_cds_wfs_push(struct cds_wfs_stack *s, struct cds_wfs_node *node)
{
struct cds_wfs_node *old_head;
{
struct cds_wfs_node *old_head;
@@
-72,6
+75,7
@@
void _cds_wfs_push(struct cds_wfs_stack *s, struct cds_wfs_node *node)
* until node->next is set to old_head.
*/
CMM_STORE_SHARED(node->next, old_head);
* until node->next is set to old_head.
*/
CMM_STORE_SHARED(node->next, old_head);
+ return (old_head != CDS_WF_STACK_END);
}
/*
}
/*
This page took
0.022756 seconds
and
4
git commands to generate.