X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-defer-static.h;h=8575195a50b4d6530f4c56e7975d49567d4decca;hp=dd875ca66b75cdac02f21a9a6eba5a4ce9693796;hb=36bc70a84250927ba68d5096a0a9740aec157f9b;hpb=ec4e58a3aba2084440012f8ccac3a31eb6101183 diff --git a/urcu-defer-static.h b/urcu-defer-static.h index dd875ca..8575195 100644 --- a/urcu-defer-static.h +++ b/urcu-defer-static.h @@ -34,7 +34,12 @@ #include #include +#include +#include +#ifdef __cplusplus +extern "C" { +#endif /* * 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; + /* registry information */ + unsigned long last_head; + struct list_head list; /* list of thread queues */ }; +#ifdef __cplusplus +} +#endif + #endif /* _URCU_DEFER_STATIC_H */