From d05399986db1af7729554c7710f674551174364c Mon Sep 17 00:00:00 2001 From: default Date: Mon, 8 Jan 2024 09:17:38 +0100 Subject: New state variable top_job_fifo_size. --- httpd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index af387da..f324cdc 100644 --- a/httpd.c +++ b/httpd.c @@ -457,6 +457,9 @@ void job_post(const xs_val *job, int urgent) p_state->job_fifo_size++; + if (p_state->job_fifo_size > p_state->top_job_fifo_size) + p_state->top_job_fifo_size = p_state->job_fifo_size; + /* unlock the mutex */ pthread_mutex_unlock(&job_mutex); -- cgit v1.2.3