X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fwfstack.h;h=c13ba64aeb20a1620ed13adb88fb85512f46e600;hp=6cb4971c929c63f02d231ac1fbd6e15550784299;hb=16aa9ee87cf4364921c36025359be01390338d87;hpb=06f22bdbb0c4c4d5db42a2e2dc35818aa61415be diff --git a/urcu/wfstack.h b/urcu/wfstack.h index 6cb4971..c13ba64 100644 --- a/urcu/wfstack.h +++ b/urcu/wfstack.h @@ -31,12 +31,12 @@ extern "C" { #endif -struct wfs_node { - struct wfs_node *next; +struct cds_wfs_node { + struct cds_wfs_node *next; }; -struct wfs_stack { - struct wfs_node *head; +struct cds_wfs_stack { + struct cds_wfs_node *head; pthread_mutex_t lock; }; @@ -44,20 +44,20 @@ struct wfs_stack { #include -#define wfs_node_init _wfs_node_init -#define wfs_init _wfs_init -#define wfs_push _wfs_push -#define __wfs_pop_blocking ___wfs_pop_blocking -#define wfs_pop_blocking _wfs_pop_blocking +#define cds_wfs_node_init _cds_wfs_node_init +#define cds_wfs_init _cds_wfs_init +#define cds_wfs_push _cds_wfs_push +#define __cds_wfs_pop_blocking ___cds_wfs_pop_blocking +#define cds_wfs_pop_blocking _cds_wfs_pop_blocking #else /* !_LGPL_SOURCE */ -extern void wfs_node_init(struct wfs_node *node); -extern void wfs_init(struct wfs_stack *s); -extern void wfs_push(struct wfs_stack *s, struct wfs_node *node); -/* __wfs_pop_blocking: caller ensures mutual exclusion between pops */ -extern struct wfs_node *__wfs_pop_blocking(struct wfs_stack *s); -extern struct wfs_node *wfs_pop_blocking(struct wfs_stack *s); +extern void cds_wfs_node_init(struct cds_wfs_node *node); +extern void cds_wfs_init(struct cds_wfs_stack *s); +extern void cds_wfs_push(struct cds_wfs_stack *s, struct cds_wfs_node *node); +/* __cds_wfs_pop_blocking: caller ensures mutual exclusion between pops */ +extern struct cds_wfs_node *__cds_wfs_pop_blocking(struct cds_wfs_stack *s); +extern struct cds_wfs_node *cds_wfs_pop_blocking(struct cds_wfs_stack *s); #endif /* !_LGPL_SOURCE */