summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-01-08 08:50:40 +0100
committerGravatar default2024-01-08 08:50:40 +0100
commit62b2c2838cadd58759cde540c5f22ba9593b45fe (patch)
tree35137a5f3f26514c92d4e12ea32620b63b2367b9
parentUpdated RELEASE_NOTES. (diff)
downloadpenes-snac2-62b2c2838cadd58759cde540c5f22ba9593b45fe.tar.gz
penes-snac2-62b2c2838cadd58759cde540c5f22ba9593b45fe.tar.xz
penes-snac2-62b2c2838cadd58759cde540c5f22ba9593b45fe.zip
Renamed some thread states.
-rw-r--r--httpd.c4
-rw-r--r--snac.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/httpd.c b/httpd.c
index 08a1b44..af387da 100644
--- a/httpd.c
+++ b/httpd.c
@@ -529,7 +529,7 @@ static void *job_thread(void *arg)
529 } 529 }
530 else { 530 else {
531 /* it's a q_item */ 531 /* it's a q_item */
532 p_state->th_state[pid] = THST_OUT; 532 p_state->th_state[pid] = THST_QUEUE;
533 533
534 process_queue_item(job); 534 process_queue_item(job);
535 } 535 }
@@ -562,7 +562,7 @@ static void *background_thread(void *arg)
562 time_t t; 562 time_t t;
563 int cnt = 0; 563 int cnt = 0;
564 564
565 p_state->th_state[0] = THST_IN; 565 p_state->th_state[0] = THST_QUEUE;
566 566
567 { 567 {
568 xs *list = user_list(); 568 xs *list = user_list();
diff --git a/snac.h b/snac.h
index c8ba887..9d2a0c9 100644
--- a/snac.h
+++ b/snac.h
@@ -51,7 +51,7 @@ typedef struct {
51 time_t srv_start_time; /* start time */ 51 time_t srv_start_time; /* start time */
52 int job_fifo_size; /* job fifo size */ 52 int job_fifo_size; /* job fifo size */
53 int n_threads; /* number of configured threads */ 53 int n_threads; /* number of configured threads */
54 enum { THST_WAIT, THST_IN, THST_OUT, THST_STOP } th_state[MAX_THREADS]; 54 enum { THST_WAIT, THST_IN, THST_QUEUE, THST_STOP } th_state[MAX_THREADS];
55} srv_state; 55} srv_state;
56 56
57void snac_log(snac *user, xs_str *str); 57void snac_log(snac *user, xs_str *str);