Lines Matching refs:queue
12 ds_queue_t *queue = ecalloc(1, sizeof(ds_queue_t)); in ds_queue_ex() local
13 queue->deque = deque; in ds_queue_ex()
14 return queue; in ds_queue_ex()
22 ds_queue_t *ds_queue_clone(ds_queue_t *queue) in ds_queue_clone() argument
24 return ds_queue_ex(ds_deque_clone(queue->deque)); in ds_queue_clone()
27 void ds_queue_free(ds_queue_t *queue) in ds_queue_free() argument
29 ds_deque_free(queue->deque); in ds_queue_free()
30 efree(queue); in ds_queue_free()
33 void ds_queue_allocate(ds_queue_t *queue, zend_long capacity) in ds_queue_allocate() argument
35 ds_deque_allocate(queue->deque, capacity); in ds_queue_allocate()
38 zend_long ds_queue_capacity(ds_queue_t *queue) in ds_queue_capacity() argument
40 return queue->deque->capacity; in ds_queue_capacity()
43 void ds_queue_push(ds_queue_t *queue, VA_PARAMS) in ds_queue_push() argument
45 ds_deque_push_va(queue->deque, argc, argv); in ds_queue_push()
48 void ds_queue_push_one(ds_queue_t *queue, zval *value) in ds_queue_push_one() argument
50 ds_deque_push(queue->deque, value); in ds_queue_push_one()
53 void ds_queue_clear(ds_queue_t *queue) in ds_queue_clear() argument
55 ds_deque_clear(queue->deque); in ds_queue_clear()
58 void ds_queue_push_all(ds_queue_t *queue, zval *value) in ds_queue_push_all() argument
60 ds_deque_push_all(queue->deque, value); in ds_queue_push_all()
63 void ds_queue_to_array(ds_queue_t *queue, zval *return_value) in ds_queue_to_array() argument
65 zend_long size = QUEUE_SIZE(queue); in ds_queue_to_array()
74 DS_DEQUE_FOREACH(queue->deque, value) { in ds_queue_to_array()
82 void ds_queue_pop_throw(ds_queue_t *queue, zval *return_value) in ds_queue_pop_throw() argument
84 ds_deque_shift_throw(queue->deque, return_value); in ds_queue_pop_throw()
87 void ds_queue_pop(ds_queue_t *queue, zval *return_value) in ds_queue_pop() argument
89 ds_deque_shift(queue->deque, return_value); in ds_queue_pop()
92 zval *ds_queue_peek_throw(ds_queue_t *queue) in ds_queue_peek_throw() argument
94 return ds_deque_get_first_throw(queue->deque); in ds_queue_peek_throw()
97 zval *ds_queue_peek(ds_queue_t *queue) in ds_queue_peek() argument
99 return ds_deque_get_first(queue->deque); in ds_queue_peek()