nxt_fd_event.h (13:3a52b2c3d3f1) nxt_fd_event.h (2084:7d479274f334)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_FD_EVENT_H_INCLUDED_
8#define _NXT_FD_EVENT_H_INCLUDED_

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

39 * level-triggered for old epoll, devpoll, pollset, poll, and select;
40 * oneshot for kqueue and eventport.
41 */
42 NXT_EVENT_DEFAULT,
43 NXT_EVENT_ACTIVE = NXT_EVENT_DEFAULT,
44} nxt_fd_event_state_t;
45
46
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_FD_EVENT_H_INCLUDED_
8#define _NXT_FD_EVENT_H_INCLUDED_

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

39 * level-triggered for old epoll, devpoll, pollset, poll, and select;
40 * oneshot for kqueue and eventport.
41 */
42 NXT_EVENT_DEFAULT,
43 NXT_EVENT_ACTIVE = NXT_EVENT_DEFAULT,
44} nxt_fd_event_state_t;
45
46
47#define \
48nxt_fd_event_is_disabled(state) \
47#define nxt_fd_event_is_disabled(state) \
49 ((state) < NXT_EVENT_ONESHOT)
50
51
48 ((state) < NXT_EVENT_ONESHOT)
49
50
52#define \
53nxt_fd_event_is_active(state) \
51#define nxt_fd_event_is_active(state) \
54 ((state) >= NXT_EVENT_ONESHOT)
55
56
57struct nxt_fd_event_s {
58 void *data;
59
60 /* Both are int's. */
61 nxt_socket_t fd;

--- 59 unchanged lines hidden ---
52 ((state) >= NXT_EVENT_ONESHOT)
53
54
55struct nxt_fd_event_s {
56 void *data;
57
58 /* Both are int's. */
59 nxt_socket_t fd;

--- 59 unchanged lines hidden ---