X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Fstatic%2Fwfcqueue.h;h=478e8598a6b2898694d9d1d4856691390ffbce66;hp=5e54cbed3526a7617428f88f9f3e33bbb379fca8;hb=014775106c60f02818ca755b331f887030bd440f;hpb=2a27e9319bacc9bc98f38afb7e4f050601ab979b diff --git a/include/urcu/static/wfcqueue.h b/include/urcu/static/wfcqueue.h index 5e54cbe..478e859 100644 --- a/include/urcu/static/wfcqueue.h +++ b/include/urcu/static/wfcqueue.h @@ -28,9 +28,9 @@ */ #include -#include #include #include +#include #include #include @@ -104,7 +104,7 @@ static inline void _cds_wfcq_init(struct cds_wfcq_head *head, _cds_wfcq_node_init(&head->node); tail->p = &head->node; ret = pthread_mutex_init(&head->lock, NULL); - assert(!ret); + urcu_posix_assert(!ret); } /* @@ -115,7 +115,7 @@ static inline void _cds_wfcq_destroy(struct cds_wfcq_head *head, struct cds_wfcq_tail *tail __attribute__((unused))) { int ret = pthread_mutex_destroy(&head->lock); - assert(!ret); + urcu_posix_assert(!ret); } /* @@ -163,7 +163,7 @@ static inline void _cds_wfcq_dequeue_lock(struct cds_wfcq_head *head, int ret; ret = pthread_mutex_lock(&head->lock); - assert(!ret); + urcu_posix_assert(!ret); } static inline void _cds_wfcq_dequeue_unlock(struct cds_wfcq_head *head, @@ -172,7 +172,7 @@ static inline void _cds_wfcq_dequeue_unlock(struct cds_wfcq_head *head, int ret; ret = pthread_mutex_unlock(&head->lock); - assert(!ret); + urcu_posix_assert(!ret); } static inline bool ___cds_wfcq_append(cds_wfcq_head_ptr_t u_head,