projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: change method used by _rcu_dereference to strip type constness
[userspace-rcu.git]
/
include
/
urcu
/
static
/
wfstack.h
diff --git
a/include/urcu/static/wfstack.h
b/include/urcu/static/wfstack.h
index bd7ba688e31c4964d854c9f612b4b0f70377081b..088e6e3acbbe4631a6c7c16136a687c3d21811db 100644
(file)
--- a/
include/urcu/static/wfstack.h
+++ b/
include/urcu/static/wfstack.h
@@
-37,7
+37,7
@@
extern "C" {
#endif
extern "C" {
#endif
-#define CDS_WFS_END ((
voi
d *) 0x1UL)
+#define CDS_WFS_END ((
struct cds_wfs_hea
d *) 0x1UL)
#define CDS_WFS_ADAPT_ATTEMPTS 10 /* Retry if being set */
#define CDS_WFS_WAIT 10 /* Wait 10 ms if being set */
#define CDS_WFS_ADAPT_ATTEMPTS 10 /* Retry if being set */
#define CDS_WFS_WAIT 10 /* Wait 10 ms if being set */
@@
-345,9
+345,11
@@
struct cds_wfs_node *
_cds_wfs_pop_with_state_blocking(struct cds_wfs_stack *s, int *state)
{
struct cds_wfs_node *retnode;
_cds_wfs_pop_with_state_blocking(struct cds_wfs_stack *s, int *state)
{
struct cds_wfs_node *retnode;
+ cds_wfs_stack_ptr_t stack;
_cds_wfs_pop_lock(s);
_cds_wfs_pop_lock(s);
- retnode = ___cds_wfs_pop_with_state_blocking(s, state);
+ stack.s = s;
+ retnode = ___cds_wfs_pop_with_state_blocking(stack, state);
_cds_wfs_pop_unlock(s);
return retnode;
}
_cds_wfs_pop_unlock(s);
return retnode;
}
@@
-370,9
+372,11
@@
struct cds_wfs_head *
_cds_wfs_pop_all_blocking(struct cds_wfs_stack *s)
{
struct cds_wfs_head *rethead;
_cds_wfs_pop_all_blocking(struct cds_wfs_stack *s)
{
struct cds_wfs_head *rethead;
+ cds_wfs_stack_ptr_t stack;
_cds_wfs_pop_lock(s);
_cds_wfs_pop_lock(s);
- rethead = ___cds_wfs_pop_all(s);
+ stack.s = s;
+ rethead = ___cds_wfs_pop_all(stack);
_cds_wfs_pop_unlock(s);
return rethead;
}
_cds_wfs_pop_unlock(s);
return rethead;
}
This page took
0.025631 seconds
and
4
git commands to generate.