mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Renamed some thread states.
This commit is contained in:
parent
80de92d6b8
commit
62b2c2838c
2 changed files with 3 additions and 3 deletions
4
httpd.c
4
httpd.c
|
@ -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
2
snac.h
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue