*/
#include <pthread.h>
-#include <assert.h>
#include <poll.h>
#include <stdbool.h>
+#include <urcu/assert.h>
#include <urcu/compiler.h>
#include <urcu/uatomic.h>
s->head = CDS_WFS_END;
ret = pthread_mutex_init(&s->lock, NULL);
- assert(!ret);
+ urcu_posix_assert(!ret);
}
/*
void _cds_wfs_destroy(struct cds_wfs_stack *s)
{
int ret = pthread_mutex_destroy(&s->lock);
- assert(!ret);
+ urcu_posix_assert(!ret);
}
static inline bool ___cds_wfs_end(void *node)
struct __cds_wfs_stack *s = u_stack._s;
struct cds_wfs_head *old_head, *new_head;
- assert(node->next == NULL);
+ urcu_posix_assert(node->next == NULL);
new_head = caa_container_of(node, struct cds_wfs_head, node);
/*
* uatomic_xchg() implicit memory barrier orders earlier stores
int ret;
ret = pthread_mutex_lock(&s->lock);
- assert(!ret);
+ urcu_posix_assert(!ret);
}
/*
int ret;
ret = pthread_mutex_unlock(&s->lock);
- assert(!ret);
+ urcu_posix_assert(!ret);
}
/*