diff options
Diffstat (limited to 'src/svm/message_queue.c')
-rw-r--r-- | src/svm/message_queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svm/message_queue.c b/src/svm/message_queue.c index 89411143c12..77c15ed4654 100644 --- a/src/svm/message_queue.c +++ b/src/svm/message_queue.c @@ -200,10 +200,11 @@ svm_msg_q_add (svm_msg_q_t * mq, svm_msg_q_msg_t * msg, int nowait) } void -svm_msg_q_add_w_lock (svm_msg_q_t * mq, svm_msg_q_msg_t * msg) +svm_msg_q_add_and_unlock (svm_msg_q_t * mq, svm_msg_q_msg_t * msg) { ASSERT (svm_msq_q_msg_is_valid (mq, msg)); svm_queue_add_raw (mq->q, (u8 *) msg); + svm_msg_q_unlock (mq); } int |