From cc3aab12ecf4f1507bb0573af4f633a1d9f5f281 Mon Sep 17 00:00:00 2001 From: Riccardo Elitropi Date: Fri, 26 Sep 2025 14:52:46 +0200 Subject: [PATCH] EgtExecutor : - in hiredis aggiunto sleep nel thread degli eventi per non saturare la CPU. --- EXE_Redis.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/EXE_Redis.cpp b/EXE_Redis.cpp index 16db91e..72e3e0f 100644 --- a/EXE_Redis.cpp +++ b/EXE_Redis.cpp @@ -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 ;