diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-26 15:45:23 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-28 11:46:32 +0200 |
commit | fef10b7a84804b937375bc996df32da6cfab4dab (patch) | |
tree | 722cbabc7f1b0cf5091b3b7c04b3f9a87b37c8c5 /src/server.h | |
parent | came up with a new name: cimple (diff) | |
download | cimple-fef10b7a84804b937375bc996df32da6cfab4dab.tar.gz cimple-fef10b7a84804b937375bc996df32da6cfab4dab.zip |
server: shutting down more gracefully
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server.h b/src/server.h index 37fdb13..9107b4c 100644 --- a/src/server.h +++ b/src/server.h @@ -12,13 +12,16 @@ struct settings { }; struct server { + pthread_mutex_t server_mtx; + pthread_cond_t server_cv; + + int stopping; + struct tcp_server tcp_server; struct worker_queue worker_queue; struct ci_queue ci_queue; - pthread_mutex_t scheduler_mtx; - pthread_cond_t scheduler_cv; pthread_t scheduler; }; |