From 229d4c7decb71fd607aaec14ecbae81e380cc700 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 23 Dec 2016 02:08:40 -0800 Subject: Uncrustify fixes. --- src/core/msgqueue.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/core/msgqueue.c') diff --git a/src/core/msgqueue.c b/src/core/msgqueue.c index fd89b7ad..859c0bd9 100644 --- a/src/core/msgqueue.c +++ b/src/core/msgqueue.c @@ -20,12 +20,12 @@ struct nni_msgqueue { nni_cond mq_writeable; nni_cond mq_drained; int mq_cap; - int mq_alloc; // alloc is cap + 2... + int mq_alloc; // alloc is cap + 2... int mq_len; int mq_get; int mq_put; int mq_closed; - int mq_rwait; // readers waiting (unbuffered) + int mq_rwait; // readers waiting (unbuffered) nni_msg ** mq_msgs; }; @@ -146,12 +146,14 @@ nni_msgqueue_put_impl(nni_msgqueue *mq, nni_msg *msg, } // room in the queue? - if (mq->mq_len < mq->mq_cap) + if (mq->mq_len < mq->mq_cap) { break; + } // unbuffered, room for one, and a reader waiting? - if (mq->mq_rwait && (mq->mq_len == mq->mq_cap)) + if (mq->mq_rwait && (mq->mq_len == mq->mq_cap)) { break; + } // interrupted? if (*signal) { -- cgit v1.2.3-70-g09d2