nxt_fd_event.c (12:477899a6661b) nxt_fd_event.c (65:10688b89aa16)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8
9
10static nxt_int_t nxt_fd_event_hash_test(nxt_lvlhsh_query_t *lhq, void *data);
11static void nxt_fd_event_hash_error(nxt_task_t *task, nxt_fd_t fd);
12
13
14static const nxt_lvlhsh_proto_t nxt_event_set_fd_hash_proto nxt_aligned(64) =
15{
16 NXT_LVLHSH_LARGE_MEMALIGN,
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8
9
10static nxt_int_t nxt_fd_event_hash_test(nxt_lvlhsh_query_t *lhq, void *data);
11static void nxt_fd_event_hash_error(nxt_task_t *task, nxt_fd_t fd);
12
13
14static const nxt_lvlhsh_proto_t nxt_event_set_fd_hash_proto nxt_aligned(64) =
15{
16 NXT_LVLHSH_LARGE_MEMALIGN,
17 0,
18 nxt_fd_event_hash_test,
19 nxt_lvlhsh_alloc,
20 nxt_lvlhsh_free,
21};
22
23
24/* nxt_murmur_hash2() is unique for 4 bytes. */
25

--- 106 unchanged lines hidden ---
17 nxt_fd_event_hash_test,
18 nxt_lvlhsh_alloc,
19 nxt_lvlhsh_free,
20};
21
22
23/* nxt_murmur_hash2() is unique for 4 bytes. */
24

--- 106 unchanged lines hidden ---