projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add extern "C" to support linking userspace RCU library with C++ applications
[urcu.git]
/
urcu-defer-static.h
diff --git
a/urcu-defer-static.h
b/urcu-defer-static.h
index 427f3d34d7aa04c5a56db02140815bfd4a1d949b..8575195a50b4d6530f4c56e7975d49567d4decca 100644
(file)
--- a/
urcu-defer-static.h
+++ b/
urcu-defer-static.h
@@
-32,9
+32,14
@@
#include <stdlib.h>
#include <pthread.h>
#include <stdlib.h>
#include <pthread.h>
-#include <compiler.h>
-#include <arch.h>
+#include <urcu/compiler.h>
+#include <urcu/arch.h>
+#include <urcu/uatomic_arch.h>
+#include <urcu/list.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
/*
* Number of entries in the per-thread defer queue. Must be power of 2.
/*
* Number of entries in the per-thread defer queue. Must be power of 2.
@@
-120,6
+125,13
@@
struct defer_queue {
unsigned long tail; /* next element to remove at tail */
void *last_fct_out; /* last fct pointer encoded */
void **q;
unsigned long tail; /* next element to remove at tail */
void *last_fct_out; /* last fct pointer encoded */
void **q;
+ /* registry information */
+ unsigned long last_head;
+ struct list_head list; /* list of thread queues */
};
};
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _URCU_DEFER_STATIC_H */
#endif /* _URCU_DEFER_STATIC_H */
This page took
0.03464 seconds
and
4
git commands to generate.