From b0eba5ed8af2b7e877fac9205f7b09417e33cf37 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 Apr 2016 16:20:05 +0200 Subject: score: _CORE_message_queue_Seize() Move lock acquire to caller of _CORE_message_queue_Seize() to allow state checks during receive operations under lock protection. --- cpukit/score/src/coremsgseize.c | 1 - 1 file changed, 1 deletion(-) (limited to 'cpukit/score/src/coremsgseize.c') diff --git a/cpukit/score/src/coremsgseize.c b/cpukit/score/src/coremsgseize.c index 5e14918d3a..2471b918a9 100644 --- a/cpukit/score/src/coremsgseize.c +++ b/cpukit/score/src/coremsgseize.c @@ -40,7 +40,6 @@ void _CORE_message_queue_Seize( CORE_message_queue_Buffer_control *the_message; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; - _CORE_message_queue_Acquire_critical( the_message_queue, lock_context ); the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; -- cgit v1.2.3