nxt_port.c (430:3a24c399394f) nxt_port.c (507:fa714d76592b)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_runtime.h>

--- 15 unchanged lines hidden (view full) ---

24 port = obj;
25 mp = data;
26
27 nxt_assert(port->pair[0] == -1);
28 nxt_assert(port->pair[1] == -1);
29
30 nxt_assert(port->use_count == 0);
31 nxt_assert(port->app_link.next == NULL);
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_runtime.h>

--- 15 unchanged lines hidden (view full) ---

24 port = obj;
25 mp = data;
26
27 nxt_assert(port->pair[0] == -1);
28 nxt_assert(port->pair[1] == -1);
29
30 nxt_assert(port->use_count == 0);
31 nxt_assert(port->app_link.next == NULL);
32 nxt_assert(port->idle_link.next == NULL);
32
33 nxt_assert(nxt_queue_is_empty(&port->messages));
34 nxt_assert(nxt_lvlhsh_is_empty(&port->rpc_streams));
35 nxt_assert(nxt_lvlhsh_is_empty(&port->rpc_peers));
36
37 nxt_thread_mutex_destroy(&port->write_mutex);
38
39 nxt_mp_free(mp, port);

--- 518 unchanged lines hidden ---
33
34 nxt_assert(nxt_queue_is_empty(&port->messages));
35 nxt_assert(nxt_lvlhsh_is_empty(&port->rpc_streams));
36 nxt_assert(nxt_lvlhsh_is_empty(&port->rpc_peers));
37
38 nxt_thread_mutex_destroy(&port->write_mutex);
39
40 nxt_mp_free(mp, port);

--- 518 unchanged lines hidden ---