diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-10-04 14:57:56 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-10-04 14:57:56 +0300 |
commit | ba311997866a4c2ef6ceeaac846832a85bd86f17 (patch) | |
tree | 74c268496a856065eec13b57db2a5158da2b6cd1 /src/nxt_port_hash.h | |
parent | 4ae76249edb97775be8a0c749ad9ee79e3e85393 (diff) | |
download | unit-ba311997866a4c2ef6ceeaac846832a85bd86f17.tar.gz unit-ba311997866a4c2ef6ceeaac846832a85bd86f17.tar.bz2 |
Removing mem_pool from port_hash interface.
Memory pool is not used by port_hash and it was a mistake to pass it into
'add' and 'remove' functions. port_hash enrties are allocated from heap.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_port_hash.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nxt_port_hash.h b/src/nxt_port_hash.h index 57f9ba08..68389f30 100644 --- a/src/nxt_port_hash.h +++ b/src/nxt_port_hash.h @@ -11,11 +11,9 @@ #include <nxt_main.h> -void nxt_port_hash_add(nxt_lvlhsh_t *port_hash, nxt_mp_t *mem_pool, - nxt_port_t *port); +void nxt_port_hash_add(nxt_lvlhsh_t *port_hash, nxt_port_t *port); -void nxt_port_hash_remove(nxt_lvlhsh_t *port_hash, nxt_mp_t *mem_pool, - nxt_port_t *port); +void nxt_port_hash_remove(nxt_lvlhsh_t *port_hash, nxt_port_t *port); nxt_port_t *nxt_port_hash_find(nxt_lvlhsh_t *port_hash, nxt_pid_t pid, nxt_port_id_t port_id); |