diff options
Diffstat (limited to 'src/kvstorage_server.h')
-rw-r--r-- | src/kvstorage_server.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/kvstorage_server.h b/src/kvstorage_server.h index aeb11e249..6e8e218ea 100644 --- a/src/kvstorage_server.h +++ b/src/kvstorage_server.h @@ -38,21 +38,23 @@ struct kvstorage_worker_ctx { gboolean is_redis; memory_pool_t *pool; struct event_base *ev_base; - GStaticMutex log_mtx; - GStaticMutex accept_mtx; + GMutex *log_mtx; + GMutex *accept_mtx; }; struct kvstorage_worker_thread { struct event bind_ev; + struct event term_ev; struct timeval *tv; struct kvstorage_worker_ctx *ctx; struct rspamd_worker *worker; GThread *thr; struct event_base *ev_base; - GStaticMutex *log_mtx; - GStaticMutex *accept_mtx; + GMutex *log_mtx; + GMutex *accept_mtx; guint id; sigset_t *signals; + gint term_sock[2]; }; struct kvstorage_session { |