Renamed some thread states.

This commit is contained in:
default 2024-01-08 08:50:40 +01:00
parent 80de92d6b8
commit 62b2c2838c
2 changed files with 3 additions and 3 deletions

View File

@ -529,7 +529,7 @@ static void *job_thread(void *arg)
}
else {
/* it's a q_item */
p_state->th_state[pid] = THST_OUT;
p_state->th_state[pid] = THST_QUEUE;
process_queue_item(job);
}
@ -562,7 +562,7 @@ static void *background_thread(void *arg)
time_t t;
int cnt = 0;
p_state->th_state[0] = THST_IN;
p_state->th_state[0] = THST_QUEUE;
{
xs *list = user_list();

2
snac.h
View File

@ -51,7 +51,7 @@ typedef struct {
time_t srv_start_time; /* start time */
int job_fifo_size; /* job fifo size */
int n_threads; /* number of configured threads */
enum { THST_WAIT, THST_IN, THST_OUT, THST_STOP } th_state[MAX_THREADS];
enum { THST_WAIT, THST_IN, THST_QUEUE, THST_STOP } th_state[MAX_THREADS];
} srv_state;
void snac_log(snac *user, xs_str *str);