summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-01-08 09:17:38 +0100
committerdefault <nobody@localhost>2024-01-08 09:17:38 +0100
commitd05399986db1af7729554c7710f674551174364c (patch)
treeed5614176910476c5cbb6940a4b9361cd49445c6 /httpd.c
parent62b2c2838cadd58759cde540c5f22ba9593b45fe (diff)
New state variable top_job_fifo_size.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c3
1 files changed, 3 insertions, 0 deletions
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);