X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=wfcqueue.c;h=85de8ecf9b29531b6cd1245dda4ca06cc8fde310;hp=4950c1008ebbd69c51bff06ae6cf929ef4bc5b73;hb=2af1c19e6a553878fcb2a5106f050d5ed7ac0f54;hpb=eec791af9cc9835682c2a72020171eb64737aff7 diff --git a/wfcqueue.c b/wfcqueue.c index 4950c10..85de8ec 100644 --- a/wfcqueue.c +++ b/wfcqueue.c @@ -40,14 +40,26 @@ void cds_wfcq_init(struct cds_wfcq_head *head, _cds_wfcq_init(head, tail); } -bool cds_wfcq_empty(struct cds_wfcq_head *head, +void cds_wfcq_destroy(struct cds_wfcq_head *head, + struct cds_wfcq_tail *tail) +{ + _cds_wfcq_destroy(head, tail); +} + +void __cds_wfcq_init(struct __cds_wfcq_head *head, + struct cds_wfcq_tail *tail) +{ + ___cds_wfcq_init(head, tail); +} + +bool cds_wfcq_empty(cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail) { return _cds_wfcq_empty(head, tail); } -bool cds_wfcq_enqueue(struct cds_wfcq_head *head, +bool cds_wfcq_enqueue(cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail, struct cds_wfcq_node *node) { @@ -92,14 +104,14 @@ enum cds_wfcq_ret cds_wfcq_splice_blocking( } struct cds_wfcq_node *__cds_wfcq_dequeue_blocking( - struct cds_wfcq_head *head, + cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail) { return ___cds_wfcq_dequeue_blocking(head, tail); } struct cds_wfcq_node *__cds_wfcq_dequeue_with_state_blocking( - struct cds_wfcq_head *head, + cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail, int *state) { @@ -107,14 +119,14 @@ struct cds_wfcq_node *__cds_wfcq_dequeue_with_state_blocking( } struct cds_wfcq_node *__cds_wfcq_dequeue_nonblocking( - struct cds_wfcq_head *head, + cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail) { return ___cds_wfcq_dequeue_nonblocking(head, tail); } struct cds_wfcq_node *__cds_wfcq_dequeue_with_state_nonblocking( - struct cds_wfcq_head *head, + cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail, int *state) { @@ -122,9 +134,9 @@ struct cds_wfcq_node *__cds_wfcq_dequeue_with_state_nonblocking( } enum cds_wfcq_ret __cds_wfcq_splice_blocking( - struct cds_wfcq_head *dest_q_head, + cds_wfcq_head_ptr_t dest_q_head, struct cds_wfcq_tail *dest_q_tail, - struct cds_wfcq_head *src_q_head, + cds_wfcq_head_ptr_t src_q_head, struct cds_wfcq_tail *src_q_tail) { return ___cds_wfcq_splice_blocking(dest_q_head, dest_q_tail, @@ -132,9 +144,9 @@ enum cds_wfcq_ret __cds_wfcq_splice_blocking( } enum cds_wfcq_ret __cds_wfcq_splice_nonblocking( - struct cds_wfcq_head *dest_q_head, + cds_wfcq_head_ptr_t dest_q_head, struct cds_wfcq_tail *dest_q_tail, - struct cds_wfcq_head *src_q_head, + cds_wfcq_head_ptr_t src_q_head, struct cds_wfcq_tail *src_q_tail) { return ___cds_wfcq_splice_nonblocking(dest_q_head, dest_q_tail, @@ -142,21 +154,21 @@ enum cds_wfcq_ret __cds_wfcq_splice_nonblocking( } struct cds_wfcq_node *__cds_wfcq_first_blocking( - struct cds_wfcq_head *head, + cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail) { return ___cds_wfcq_first_blocking(head, tail); } struct cds_wfcq_node *__cds_wfcq_first_nonblocking( - struct cds_wfcq_head *head, + cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail) { return ___cds_wfcq_first_nonblocking(head, tail); } struct cds_wfcq_node *__cds_wfcq_next_blocking( - struct cds_wfcq_head *head, + cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail, struct cds_wfcq_node *node) { @@ -164,7 +176,7 @@ struct cds_wfcq_node *__cds_wfcq_next_blocking( } struct cds_wfcq_node *__cds_wfcq_next_nonblocking( - struct cds_wfcq_head *head, + cds_wfcq_head_ptr_t head, struct cds_wfcq_tail *tail, struct cds_wfcq_node *node) {