EgtExecutor :
- in Redis, piccola miglioria per evitare saturazione CPU
This commit is contained in:
@@ -443,6 +443,8 @@ RedisEventLoop( redisAsyncContext* ctx, bool bIsPub)
|
||||
if ( FD_ISSET( sock, &wfds))
|
||||
redisAsyncHandleWrite( ctx) ;
|
||||
}
|
||||
// Evito saturazione CPU
|
||||
this_thread::sleep_for( chrono::milliseconds( 10)) ;
|
||||
}
|
||||
|
||||
// Reset del timeOut ad ogni ciclo
|
||||
|
||||
Reference in New Issue
Block a user