summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_engine.h
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-06-02 16:51:49 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-06-02 16:51:49 +0400
commitd9fddee1dbfc1f5d49c8f40386289d7188030952 (patch)
tree842a62b343ac33eba10e7a426a10b55bb1c46aed /src/nxt_event_engine.h
parent420395ee2e7cd464e157c49bea3d74f15bf25f30 (diff)
parent0d48fe73c4450901622373e35f6ff3a944ec13d6 (diff)
downloadunit-d9fddee1dbfc1f5d49c8f40386289d7188030952.tar.gz
unit-d9fddee1dbfc1f5d49c8f40386289d7188030952.tar.bz2
Merged with the default branch.1.27.0-1
Diffstat (limited to '')
-rw-r--r--src/nxt_event_engine.h36
1 files changed, 12 insertions, 24 deletions
diff --git a/src/nxt_event_engine.h b/src/nxt_event_engine.h
index 6b05d510..91cfc0aa 100644
--- a/src/nxt_event_engine.h
+++ b/src/nxt_event_engine.h
@@ -351,43 +351,35 @@ void nxt_fd_event_hash_delete(nxt_task_t *task, nxt_lvlhsh_t *lvlhsh,
void nxt_fd_event_hash_destroy(nxt_lvlhsh_t *lvlhsh);
-#define \
-nxt_fd_event_disable(engine, ev) \
+#define nxt_fd_event_disable(engine, ev) \
(engine)->event.disable(engine, ev)
-#define \
-nxt_fd_event_delete(engine, ev) \
+#define nxt_fd_event_delete(engine, ev) \
(engine)->event.delete(engine, ev)
-#define \
-nxt_fd_event_close(engine, ev) \
+#define nxt_fd_event_close(engine, ev) \
(engine)->event.close(engine, ev)
-#define \
-nxt_fd_event_enable_read(engine, ev) \
+#define nxt_fd_event_enable_read(engine, ev) \
(engine)->event.enable_read(engine, ev)
-#define \
-nxt_fd_event_enable_write(engine, ev) \
+#define nxt_fd_event_enable_write(engine, ev) \
(engine)->event.enable_write(engine, ev)
-#define \
-nxt_fd_event_disable_read(engine, ev) \
+#define nxt_fd_event_disable_read(engine, ev) \
(engine)->event.disable_read(engine, ev)
-#define \
-nxt_fd_event_disable_write(engine, ev) \
+#define nxt_fd_event_disable_write(engine, ev) \
(engine)->event.disable_write(engine, ev)
-#define \
-nxt_fd_event_block_read(engine, ev) \
+#define nxt_fd_event_block_read(engine, ev) \
do { \
if (nxt_fd_event_is_active((ev)->read)) { \
(engine)->event.block_read(engine, ev); \
@@ -395,8 +387,7 @@ nxt_fd_event_block_read(engine, ev) \
} while (0)
-#define \
-nxt_fd_event_block_write(engine, ev) \
+#define nxt_fd_event_block_write(engine, ev) \
do { \
if (nxt_fd_event_is_active((ev)->write)) { \
(engine)->event.block_write(engine, ev); \
@@ -404,18 +395,15 @@ nxt_fd_event_block_write(engine, ev) \
} while (0)
-#define \
-nxt_fd_event_oneshot_read(engine, ev) \
+#define nxt_fd_event_oneshot_read(engine, ev) \
(engine)->event.oneshot_read(engine, ev)
-#define \
-nxt_fd_event_oneshot_write(engine, ev) \
+#define nxt_fd_event_oneshot_write(engine, ev) \
(engine)->event.oneshot_write(engine, ev)
-#define \
-nxt_fd_event_enable_accept(engine, ev) \
+#define nxt_fd_event_enable_accept(engine, ev) \
(engine)->event.enable_accept(engine, ev)