aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-03-09 17:45:25 -0800
committerDave Barach <openvpp@barachs.net>2019-03-12 19:29:36 +0000
commit176bcb28d845f74be5782fc676d0dd1adf0c12bb (patch)
tree034ec50041d5f3f432c6480d9cdabc5832048929 /src/svm
parent0147c0fefa2f5af3f878c4a05eb1f46db7e6ade5 (diff)
svm mq: add unit test
Change-Id: I2f1fa15a99163b9c105707484503dc9502265c52 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/svm')
-rw-r--r--src/svm/message_queue.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/svm/message_queue.h b/src/svm/message_queue.h
index 28bf14e545e..c57b51acc7a 100644
--- a/src/svm/message_queue.h
+++ b/src/svm/message_queue.h
@@ -314,9 +314,6 @@ svm_msg_q_lock (svm_msg_q_t * mq)
static inline void
svm_msg_q_unlock (svm_msg_q_t * mq)
{
- /* The other side of the connection is not polling */
- if (mq->q->cursize < (mq->q->maxsize / 8))
- (void) pthread_cond_broadcast (&mq->q->condvar);
pthread_mutex_unlock (&mq->q->mutex);
}