From 85af19455bb0fdb01fdf919e785d215156fc309b Mon Sep 17 00:00:00 2001 From: Riccardo Elitropi Date: Tue, 30 Sep 2025 11:45:48 +0200 Subject: [PATCH] EgtExecutor : - in Redis, piccola miglioria per evitare saturazione CPU --- EXE_Redis.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/EXE_Redis.cpp b/EXE_Redis.cpp index 7535f78..7d88629 100644 --- a/EXE_Redis.cpp +++ b/EXE_Redis.cpp @@ -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