summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrond Norbye <trond.norbye@gmail.com>2012-10-17 13:00:52 +0200
committerdormando <dormando@rydia.net>2013-12-08 18:19:00 -0800
commit39834e15706ed931a9d7c66c78922fea56702f73 (patch)
tree3771b37a9d361d34a452a0025120c18e00997f22
parent5ce6a38bc162de8dbbdfb5d453998d0544fe0d6c (diff)
downloadmemcached-39834e15706ed931a9d7c66c78922fea56702f73.tar.gz
Issue 293: Remove unused condition variable
-rw-r--r--thread.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 4e3e239..f83dde3 100644
--- a/thread.c
+++ b/thread.c
@@ -34,7 +34,6 @@ struct conn_queue {
CQ_ITEM *head;
CQ_ITEM *tail;
pthread_mutex_t lock;
- pthread_cond_t cond;
};
/* Lock for cache operations (item_*, assoc_*) */
@@ -205,7 +204,6 @@ void switch_item_lock_type(enum item_lock_types type) {
*/
static void cq_init(CQ *cq) {
pthread_mutex_init(&cq->lock, NULL);
- pthread_cond_init(&cq->cond, NULL);
cq->head = NULL;
cq->tail = NULL;
}
@@ -242,7 +240,6 @@ static void cq_push(CQ *cq, CQ_ITEM *item) {
else
cq->tail->next = item;
cq->tail = item;
- pthread_cond_signal(&cq->cond);
pthread_mutex_unlock(&cq->lock);
}