aboutsummaryrefslogtreecommitdiffstats
path: root/src/kvstorage_server.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-01-31 20:59:10 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-01-31 20:59:10 +0400
commit9023eb3f1e85e456ee8804b7867c9e17ada5aa6e (patch)
treea3861a28d1cfd8cd47c6168ff42bf3630c31411f /src/kvstorage_server.h
parenta874d5eb9fe0a2e1ddf1a0f48e6df41845be087f (diff)
downloadrspamd-9023eb3f1e85e456ee8804b7867c9e17ada5aa6e.tar.gz
rspamd-9023eb3f1e85e456ee8804b7867c9e17ada5aa6e.zip
Adopt rspamd for the next glib release.
Fix several issues in threads handling inside keystorage. Fix sigsuspend usage in keystorage.
Diffstat (limited to 'src/kvstorage_server.h')
-rw-r--r--src/kvstorage_server.h10
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 {