EgtExecutor :
- in hiredis aggiunto sleep nel thread degli eventi per non saturare la CPU.
This commit is contained in:
@@ -398,6 +398,7 @@ RedisEventLoop( redisAsyncContext* ctx, bool bIsPub)
|
||||
if ( FD_ISSET( sock, &wfds) && ctx != nullptr)
|
||||
redisAsyncHandleWrite( ctx) ;
|
||||
}
|
||||
this_thread::sleep_for( chrono::milliseconds( 10)) ;
|
||||
}
|
||||
|
||||
return ;
|
||||
|
||||
Reference in New Issue
Block a user