FreeBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bqueue.c
/*
 * Destroy a blocking queue.  This function asserts that there are no
 * elements in the queue, and no one is blocked on the condition
 * variables.
 */
Destroy a blocking queue.  This function asserts that there are no
elements in the queue, and no one is blocked on the condition
variables.
Destroy a blocking queue . This function asserts that there are no elements in the queue and no one is blocked on the condition variables .
void
bqueue_destroy(bqueue_t *q)
{
	ASSERT0(q->bq_size);
	cv_destroy(&q->bq_add_cv);
	cv_destroy(&q->bq_pop_cv);
	mutex_destroy(&q->bq_lock);
	list_destroy(&q->bq_list);
}
void bqueue_destroy ( bqueue_t * q ) { ASSERT0 ( q -> bq_size ) ; cv_destroy ( & q -> bq_add_cv ) ; cv_destroy ( & q -> bq_pop_cv ) ; mutex_destroy ( & q -> bq_lock ) ; list_destroy ( & q -> bq_list ) ; }
Destroy a blocking queue.
Destroy a blocking queue .