projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print error rather than abort
[userspace-rcu.git]
/
urcu-pointer.h
diff --git
a/urcu-pointer.h
b/urcu-pointer.h
index 5be986ca65a0d6aab3027812fdbc2f0b4acdffb5..6c79c58fe9e6293a41772bba1d2a91aad8b503be 100644
(file)
--- a/
urcu-pointer.h
+++ b/
urcu-pointer.h
@@
-29,6
+29,7
@@
#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/uatomic.h>
#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/uatomic.h>
+#include <urcu/urcu-checker.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-44,7
+45,11
@@
extern "C" {
* Fetch a RCU-protected pointer. Typically used to copy the variable ptr to a
* local variable.
*/
* Fetch a RCU-protected pointer. Typically used to copy the variable ptr to a
* local variable.
*/
-#define rcu_dereference _rcu_dereference
+#define rcu_dereference(p) \
+ ({ \
+ rcu_read_ongoing_check_debug(__func__); \
+ _rcu_dereference(p); \
+ })
/*
* type *rcu_cmpxchg_pointer(type **ptr, type *new, type *old)
/*
* type *rcu_cmpxchg_pointer(type **ptr, type *new, type *old)
This page took
0.022814 seconds
and
4
git commands to generate.