nxt_fd_event.c (65:10688b89aa16) nxt_fd_event.c (564:762f8c976ead)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

41 lhq.proto = &nxt_event_set_fd_hash_proto;
42
43 ret = nxt_lvlhsh_insert(lvlhsh, &lhq);
44
45 if (nxt_fast_path(ret == NXT_OK)) {
46 return NXT_OK;
47 }
48
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

41 lhq.proto = &nxt_event_set_fd_hash_proto;
42
43 ret = nxt_lvlhsh_insert(lvlhsh, &lhq);
44
45 if (nxt_fast_path(ret == NXT_OK)) {
46 return NXT_OK;
47 }
48
49 nxt_log(ev->task, NXT_LOG_CRIT, "fd event %d is already in hash", ev->fd);
49 nxt_alert(ev->task, "fd event %d is already in hash", ev->fd);
50
51 return NXT_ERROR;
52}
53
54
55void *
56nxt_fd_event_hash_get(nxt_task_t *task, nxt_lvlhsh_t *lvlhsh, nxt_fd_t fd)
57{

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

121 }
122 }
123}
124
125
126static void
127nxt_fd_event_hash_error(nxt_task_t *task, nxt_fd_t fd)
128{
50
51 return NXT_ERROR;
52}
53
54
55void *
56nxt_fd_event_hash_get(nxt_task_t *task, nxt_lvlhsh_t *lvlhsh, nxt_fd_t fd)
57{

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

121 }
122 }
123}
124
125
126static void
127nxt_fd_event_hash_error(nxt_task_t *task, nxt_fd_t fd)
128{
129 nxt_log(task, NXT_LOG_CRIT, "fd event %d not found in hash", fd);
129 nxt_alert(task, "fd event %d not found in hash", fd);
130}
130}