summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-23 19:10:46 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-23 19:10:46 +0000
commitf7030b1ba53b04f483d5a9721336af4634a58bbd (patch)
tree5008217ba901bbe4814e81a130ef151f51aa9d47
parentf99eb584753e7f36fa0aad06010d2be23c6dd3d3 (diff)
downloadnginx-f7030b1ba53b04f483d5a9721336af4634a58bbd.tar.gz
nginx-f7030b1ba53b04f483d5a9721336af4634a58bbd.tar.bz2
r1442, r1443, r1446, r1451 merge:
update comments and style fixes
-rw-r--r--src/event/ngx_event.h30
1 files changed, 19 insertions, 11 deletions
diff --git a/src/event/ngx_event.h b/src/event/ngx_event.h
index e1388d5f0..438a36052 100644
--- a/src/event/ngx_event.h
+++ b/src/event/ngx_event.h
@@ -41,7 +41,7 @@ struct ngx_event_s {
unsigned accept:1;
- /* used to detect the stale events in kqueue, rt signals and epoll */
+ /* used to detect the stale events in kqueue, rtsig, and epoll */
unsigned instance:1;
/*
@@ -247,8 +247,7 @@ extern ngx_event_actions_t ngx_event_actions;
#define NGX_USE_LOWAT_EVENT 0x00000010
/*
- * The event filter requires to do i/o operation until EAGAIN:
- * epoll, rt signals.
+ * The event filter requires to do i/o operation until EAGAIN: epoll, rtsig.
*/
#define NGX_USE_GREEDY_EVENT 0x00000020
@@ -258,7 +257,7 @@ extern ngx_event_actions_t ngx_event_actions;
#define NGX_USE_EPOLL_EVENT 0x00000040
/*
- * No need to add or delete the event filters: rt signals.
+ * No need to add or delete the event filters: rtsig.
*/
#define NGX_USE_RTSIG_EVENT 0x00000080
@@ -276,13 +275,13 @@ extern ngx_event_actions_t ngx_event_actions;
/*
* The event filter has no opaque data and requires file descriptors table:
- * poll, /dev/poll, rt signals.
+ * poll, /dev/poll, rtsig.
*/
#define NGX_USE_FD_EVENT 0x00000400
/*
* The event module handles periodic or absolute timer event by itself:
- * kqueue in FreeBSD 4.4 and NetBSD 2.0, Solaris 10's event ports.
+ * kqueue in FreeBSD 4.4, NetBSD 2.0, and MacOSX 10.4, Solaris 10's event ports.
*/
#define NGX_USE_TIMER_EVENT 0x00000800
@@ -290,17 +289,26 @@ extern ngx_event_actions_t ngx_event_actions;
* All event filters on file descriptor are deleted after a notification:
* Solaris 10's event ports.
*/
-#define NGX_USE_EVENTPORT_EVENT 0x00001000
+#define NGX_USE_EVENTPORT_EVENT 0x00001000
/*
- * The event filter is deleted before the closing file.
- * Has no meaning for select, poll, kqueue, epoll.
- * /dev/poll: we need to flush POLLREMOVE event before closing file
+ * The event filter is deleted just before the closing file.
+ * Has no meaning for select and poll.
+ * kqueue, epoll, rtsig, eventport: allows to avoid explicit delete,
+ * because filter automatically is deleted
+ * on file close,
+ *
+ * /dev/poll: we need to flush POLLREMOVE event
+ * before closing file.
*/
-
#define NGX_CLOSE_EVENT 1
+
+/*
+ * disable temporarily event filter, this may avoid locks
+ * in kernel malloc()/free(): kqueue.
+ */
#define NGX_DISABLE_EVENT 2