X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Furcu%2Fstatic%2Flfstack.h;h=22233d8d22b3d3deacfef4abf502e28dd8bcc2e1;hb=394e05562167dfe9a28bb634b625149d01bba82e;hp=d7e70d4966d6bab1f5f040c634a025c84f7baa99;hpb=0e2125fb7b2c7a92d7030b41df5fb372a7706c32;p=urcu.git diff --git a/include/urcu/static/lfstack.h b/include/urcu/static/lfstack.h index d7e70d4..22233d8 100644 --- a/include/urcu/static/lfstack.h +++ b/include/urcu/static/lfstack.h @@ -87,7 +87,7 @@ void ___cds_lfs_init(struct __cds_lfs_stack *s) } static inline -bool ___cds_lfs_empty_head(struct cds_lfs_head *head) +bool ___cds_lfs_empty_head(const struct cds_lfs_head *head) { return head == NULL; } @@ -98,7 +98,7 @@ bool ___cds_lfs_empty_head(struct cds_lfs_head *head) * No memory barrier is issued. No mutual exclusion is required. */ static inline -bool _cds_lfs_empty(cds_lfs_stack_ptr_t s) +bool _cds_lfs_empty(cds_lfs_stack_const_ptr_t s) { return ___cds_lfs_empty_head(uatomic_load(&s._s->head, CMM_RELAXED)); }