Browse Source

let idle event take effect when there is timer timeout=1s

hewei.it 4 years ago
parent
commit
2f604a815f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      event/hloop.c

+ 1 - 1
event/hloop.c

@@ -11,7 +11,7 @@
 #include "hthread.h"
 
 #define HLOOP_PAUSE_TIME        10      // ms
-#define HLOOP_MAX_BLOCK_TIME    1000    // ms
+#define HLOOP_MAX_BLOCK_TIME    900     // ms
 #define HLOOP_STAT_TIMEOUT      60000   // ms
 
 #define IO_ARRAY_INIT_SIZE              1024