Home
last modified time | relevance | path

Searched refs:prev (Results 1 – 18 of 18) sorted by relevance

/unit/src/
H A Dnxt_queue.h14 nxt_queue_link_t *prev; member
77 (queue)->head.prev
93 (link)->prev
107 (link)->prev = (queue)->head.prev; \
126 (link)->prev = (target)->prev; \
136 (link)->next->prev = (link)->prev; \
146 (link)->next->prev = (link)->prev; \
160 (tail)->head.prev = (queue)->head.prev; \
163 (queue)->head.prev = (link)->prev; \
173 (queue)->head.prev = (link)->prev; \
[all …]
H A Dnxt_queue.c57 nxt_queue_link_t *link, *prev, *next; in nxt_queue_sort() local
69 prev = nxt_queue_prev(link); in nxt_queue_sort()
75 if (cmp(data, prev, link) <= 0) { in nxt_queue_sort()
79 prev = nxt_queue_prev(prev); in nxt_queue_sort()
81 } while (prev != nxt_queue_head(queue)); in nxt_queue_sort()
83 nxt_queue_insert_after(prev, link); in nxt_queue_sort()
H A Dnxt_buf.c166 nxt_buf_t *b, **prev; in nxt_buf_chain_add() local
168 prev = head; in nxt_buf_chain_add()
171 prev = &b->next; in nxt_buf_chain_add()
174 *prev = in; in nxt_buf_chain_add()
H A Dnxt_listen_socket.h60 nxt_listen_socket_t *ls, nxt_listen_socket_t *prev);
H A Dnxt_stream_source.c290 nxt_buf_t *b, *in, *head, **prev; in nxt_stream_source_process_buffers() local
293 prev = &head; in nxt_stream_source_process_buffers()
302 *prev = b; in nxt_stream_source_process_buffers()
331 prev = &b->next; in nxt_stream_source_process_buffers()
H A Dnxt_fastcgi_source.c200 nxt_buf_t *b, *req, **prev; in nxt_fastcgi_request_create() local
208 prev = &req; in nxt_fastcgi_request_create()
220 *prev = b; in nxt_fastcgi_request_create()
221 prev = &b->next; in nxt_fastcgi_request_create()
315 *prev = b; in nxt_fastcgi_request_create()
316 prev = &b->next; in nxt_fastcgi_request_create()
H A Dnxt_port_rpc.c269 nxt_assert(reg->link.prev == &reg->link); in nxt_port_rpc_remove_from_peers()
417 nxt_assert(peer_link->prev == peer_link); in nxt_port_rpc_remove_peer()
422 nxt_assert(peer_link->next->prev == peer_link); in nxt_port_rpc_remove_peer()
423 nxt_assert(peer_link->prev->next == peer_link); in nxt_port_rpc_remove_peer()
H A Dnxt_http_source.c136 nxt_buf_t *b, *req, **prev; in nxt_http_source_request_create() local
140 prev = &req; in nxt_http_source_request_create()
152 *prev = b; in nxt_http_source_request_create()
153 prev = &b->next; in nxt_http_source_request_create()
H A Dnxt_listen_socket.c220 nxt_listen_socket_t *prev) in nxt_listen_socket_update() argument
225 ls->socket = prev->socket; in nxt_listen_socket_update()
H A Dnxt_conn_proxy.c435 nxt_buf_t *first, *second, *prev; in nxt_conn_proxy_write_add() local
465 prev = first; in nxt_conn_proxy_write_add()
480 prev = second; in nxt_conn_proxy_write_add()
483 prev->mem.free = b->mem.end; in nxt_conn_proxy_write_add()
484 prev->mem.end = b->mem.end; in nxt_conn_proxy_write_add()
H A Dnxt_runtime.c1272 nxt_listen_socket_t *curr, *prev; in nxt_runtime_listen_sockets_create() local
1278 prev = rt->inherited_sockets->elts; in nxt_runtime_listen_sockets_create()
1282 prev = NULL; in nxt_runtime_listen_sockets_create()
1290 if (nxt_sockaddr_cmp(curr[c].sockaddr, prev[p].sockaddr)) { in nxt_runtime_listen_sockets_create()
1292 ret = nxt_listen_socket_update(task, &curr[c], &prev[p]); in nxt_runtime_listen_sockets_create()
H A Dnxt_unit.c210 nxt_unit_mmap_buf_t **prev; member
796 mmap_buf->prev = head; in nxt_unit_mmap_buf_insert()
804 while (*prev != NULL) { in nxt_unit_mmap_buf_insert_tail()
805 prev = &(*prev)->next; in nxt_unit_mmap_buf_insert_tail()
808 nxt_unit_mmap_buf_insert(prev, mmap_buf); in nxt_unit_mmap_buf_insert_tail()
815 nxt_unit_mmap_buf_t **prev; in nxt_unit_mmap_buf_unlink() local
817 prev = mmap_buf->prev; in nxt_unit_mmap_buf_unlink()
820 mmap_buf->next->prev = prev; in nxt_unit_mmap_buf_unlink()
823 if (prev != NULL) { in nxt_unit_mmap_buf_unlink()
824 *prev = mmap_buf->next; in nxt_unit_mmap_buf_unlink()
[all …]
H A Dnxt_h1proto.c1495 nxt_buf_t *b, **prev, *header, *tail; in nxt_h1p_chunk_create() local
1501 prev = &out; in nxt_h1p_chunk_create()
1511 *prev = tail; in nxt_h1p_chunk_create()
1524 prev = &b->next; in nxt_h1p_chunk_create()
H A Dnxt_mem_zone.c927 prev_page = nxt_queue_link_data(page->link.prev, nxt_mem_zone_page_t, link); in nxt_mem_zone_free_pages()
H A Dnxt_router.c1482 nxt_app_t *app, *prev; in nxt_router_conf_create() local
1591 prev = nxt_router_app_find(&router->apps, &name); in nxt_router_conf_create()
1593 if (prev != NULL && nxt_strstr_eq(&app->conf, &prev->conf)) { in nxt_router_conf_create()
1596 nxt_queue_remove(&prev->link); in nxt_router_conf_create()
1597 nxt_queue_insert_tail(&tmcf->previous, &prev->link); in nxt_router_conf_create()
1599 ret = nxt_router_apps_hash_add(rtcf, prev); in nxt_router_conf_create()
H A Dnxt_port_socket.c174 msg.link.prev = NULL; in nxt_port_socket_write2()
/unit/src/java/nginx/unit/
H A DRequest.java1129 Object prev = attributes.remove(name); in removeAttribute() local
1131 if (attr_listener == null || prev == null) { in removeAttribute()
1136 new ServletRequestAttributeEvent(context, this, name, prev)); in removeAttribute()
1144 Object prev; in setAttribute() local
1147 prev = attributes.put(name, o); in setAttribute()
1149 prev = attributes.remove(name); in setAttribute()
1156 if (prev == null) { in setAttribute()
1166 new ServletRequestAttributeEvent(context, this, name, prev)); in setAttribute()
1169 new ServletRequestAttributeEvent(context, this, name, prev)); in setAttribute()
H A DContext.java3081 Object prev = attributes_.put(name, object);
3088 this, name, prev == null ? object : prev);
3091 if (prev == null) {