This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16.

View the commit online.

commit 4015600f2660dac2f5f24343579c45135c738f11
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Tue Mar 14 12:58:58 2023 +0100

    events: Fetch events also when blocked
    
    Fetch but don't process, just queue up.
    Should make no difference for now but may be needed later.
---
 src/events.c | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

diff --git a/src/events.c b/src/events.c
index bd6495ec..a80c7939 100644
--- a/src/events.c
+++ b/src/events.c
@@ -1143,27 +1143,26 @@ EventsMain(void)
 
    for (;;)
      {
-	pfetch = 0;
+	/* Fetch the entire event queue */
+	EventsFetch(&evq_ptr, &evq_size, &evq_alloc);
+	pfetch = evq_size;
+
 	if (!Mode.events.block)
 	  {
-	     /* Fetch the entire event queue */
-	     EventsFetch(&evq_ptr, &evq_size, &evq_alloc);
-	     pfetch = evq_size;
-
 	     EventsProcess(&evq_ptr, &evq_size);
-	  }
 
-	if (pfetch)
-	  {
-	     evq_fetch =
-		(pfetch > evq_fetch) ? pfetch : (3 * evq_fetch + pfetch) / 4;
-	     if (EDebug(EDBUG_TYPE_EVENTS) > 1)
-		Eprintf("%s - Alloc/fetch/peak=%d/%d/%d)\n",
-			__func__, evq_alloc, pfetch, evq_fetch);
-	     if ((evq_ptr) && ((evq_alloc - evq_fetch) > 64))
+	     if (pfetch)
 	       {
-		  evq_alloc = 0;
-		  EFREE_NULL(evq_ptr);
+		  evq_fetch = (pfetch > evq_fetch) ?
+		     pfetch : (3 * evq_fetch + pfetch) / 4;
+		  if (EDebug(EDBUG_TYPE_EVENTS) > 1)
+		     Eprintf("%s - Alloc/fetch/peak=%d/%d/%d)\n",
+			     __func__, evq_alloc, pfetch, evq_fetch);
+		  if ((evq_ptr) && ((evq_alloc - evq_fetch) > 64))
+		    {
+		       evq_alloc = 0;
+		       EFREE_NULL(evq_ptr);
+		    }
 	       }
 	  }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to