EgtExecutor :

- in Redis, piccola miglioria per evitare saturazione CPU
This commit is contained in:
Riccardo Elitropi
2025-09-30 11:45:48 +02:00
parent b1f606e821
commit 85af19455b
+2
View File
@@ -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