diff options
author | antirez <antirez@gmail.com> | 2020-05-12 13:07:44 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-05-12 13:07:44 +0200 |
commit | 27e25e9d1ed1b0ba3f639eb64c8f27b852753045 (patch) | |
tree | 1b75f0a297235919cbc360f9eba679ac204396f1 /src/ae.h | |
parent | 905e28ee87eb0bbea448ec28c11dc74991359bf5 (diff) | |
download | redis-27e25e9d1ed1b0ba3f639eb64c8f27b852753045.tar.gz |
Some rework of #7234.
Diffstat (limited to 'src/ae.h')
-rw-r--r-- | src/ae.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |