projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wfstack API: rename cds_wfs_first_blocking to cds_wfs_first
[urcu.git]
/
urcu
/
static
/
wfstack.h
diff --git
a/urcu/static/wfstack.h
b/urcu/static/wfstack.h
index cd00de64e2880887ac27cef99b23ea0db1996584..18bf763c97a69f5f04acf31409e0fd3934215f63 100644
(file)
--- a/
urcu/static/wfstack.h
+++ b/
urcu/static/wfstack.h
@@
-9,7
+9,7
@@
* TO BE INCLUDED ONLY IN LGPL-COMPATIBLE CODE. See urcu/wfstack.h for
* linking dynamically with the userspace rcu library.
*
* TO BE INCLUDED ONLY IN LGPL-COMPATIBLE CODE. See urcu/wfstack.h for
* linking dynamically with the userspace rcu library.
*
- * Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2010
-2012
- Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@
-283,7
+283,7
@@
_cds_wfs_pop_all_blocking(struct cds_wfs_stack *s)
}
/*
}
/*
- * cds_wfs_first
_blocking
: get first node of a popped stack.
+ * cds_wfs_first: get first node of a popped stack.
*
* Content written into the node before enqueue is guaranteed to be
* consistent, but no other memory ordering is ensured.
*
* Content written into the node before enqueue is guaranteed to be
* consistent, but no other memory ordering is ensured.
@@
-291,9
+291,11
@@
_cds_wfs_pop_all_blocking(struct cds_wfs_stack *s)
* Used by for-like iteration macros in urcu/wfstack.h:
* cds_wfs_for_each_blocking()
* cds_wfs_for_each_blocking_safe()
* Used by for-like iteration macros in urcu/wfstack.h:
* cds_wfs_for_each_blocking()
* cds_wfs_for_each_blocking_safe()
+ *
+ * Returns NULL if popped stack is empty, top stack node otherwise.
*/
static inline struct cds_wfs_node *
*/
static inline struct cds_wfs_node *
-_cds_wfs_first
_blocking
(struct cds_wfs_head *head)
+_cds_wfs_first(struct cds_wfs_head *head)
{
if (___cds_wfs_end(head))
return NULL;
{
if (___cds_wfs_end(head))
return NULL;
@@
-309,6
+311,9
@@
_cds_wfs_first_blocking(struct cds_wfs_head *head)
* Used by for-like iteration macros in urcu/wfstack.h:
* cds_wfs_for_each_blocking()
* cds_wfs_for_each_blocking_safe()
* Used by for-like iteration macros in urcu/wfstack.h:
* cds_wfs_for_each_blocking()
* cds_wfs_for_each_blocking_safe()
+ *
+ * Returns NULL if reached end of popped stack, non-NULL next stack
+ * node otherwise.
*/
static inline struct cds_wfs_node *
_cds_wfs_next_blocking(struct cds_wfs_node *node)
*/
static inline struct cds_wfs_node *
_cds_wfs_next_blocking(struct cds_wfs_node *node)
This page took
0.023695 seconds
and
4
git commands to generate.