projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: replace unneeded rcu_dereference by CMM_LOAD_SHARED
[userspace-rcu.git]
/
rculfstack.c
diff --git
a/rculfstack.c
b/rculfstack.c
index 4a3041d9712db7bfb78674d674c916a9a50f5324..574ea874265b316f9aed44ce998c16a034f3c585 100644
(file)
--- a/
rculfstack.c
+++ b/
rculfstack.c
@@
-20,13
+20,10
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-/* Use the urcu symbols to select the appropriate rcu flavor at link time */
-#define _LGPL_SOURCE
-#include "urcu.h"
-
-#undef _LGPL_SOURCE
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
+#undef _LGPL_SOURCE
#include "urcu/rculfstack.h"
#include "urcu/rculfstack.h"
+#define _LGPL_SOURCE
#include "urcu/static/rculfstack.h"
/*
#include "urcu/static/rculfstack.h"
/*
@@
-44,9
+41,10
@@
void cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s)
_cds_lfs_init_rcu(s);
}
_cds_lfs_init_rcu(s);
}
-void cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *node)
+int cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s,
+ struct cds_lfs_node_rcu *node)
{
{
- _cds_lfs_push_rcu(s, node);
+
return
_cds_lfs_push_rcu(s, node);
}
struct cds_lfs_node_rcu *cds_lfs_pop_rcu(struct cds_lfs_stack_rcu *s)
}
struct cds_lfs_node_rcu *cds_lfs_pop_rcu(struct cds_lfs_stack_rcu *s)
This page took
0.023092 seconds
and
4
git commands to generate.