summaryrefslogtreecommitdiff
path: root/src/ae.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-05-12 13:07:44 +0200
committerantirez <antirez@gmail.com>2020-05-12 13:07:44 +0200
commit27e25e9d1ed1b0ba3f639eb64c8f27b852753045 (patch)
tree1b75f0a297235919cbc360f9eba679ac204396f1 /src/ae.h
parent905e28ee87eb0bbea448ec28c11dc74991359bf5 (diff)
downloadredis-27e25e9d1ed1b0ba3f639eb64c8f27b852753045.tar.gz
Some rework of #7234.
Diffstat (limited to 'src/ae.h')
-rw-r--r--src/ae.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ae.h b/src/ae.h
index 9acd72434..63b306615 100644
--- a/src/ae.h
+++ b/src/ae.h
@@ -47,11 +47,12 @@
things to disk before sending replies, and want
to do that in a group fashion. */
-#define AE_FILE_EVENTS 1
-#define AE_TIME_EVENTS 2
+#define AE_FILE_EVENTS (1<<0)
+#define AE_TIME_EVENTS (1<<1)
#define AE_ALL_EVENTS (AE_FILE_EVENTS|AE_TIME_EVENTS)
-#define AE_DONT_WAIT 4
-#define AE_CALL_AFTER_SLEEP 8
+#define AE_DONT_WAIT (1<<2)
+#define AE_CALL_BEFORE_SLEEP (1<<3)
+#define AE_CALL_AFTER_SLEEP (1<<4)
#define AE_NOMORE -1
#define AE_DELETED_EVENT_ID -1