From 1d9d044ec727c47b215a8a0e14302e4cb230f948 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 17 Sep 1996 21:33:07 +0000 Subject: Reversed logic in conditional to correctly distinguish between FIFO and priority disciplines. --- cpukit/score/src/coremutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/src') diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c index 38f799b134..f68d038e76 100644 --- a/cpukit/score/src/coremutex.c +++ b/cpukit/score/src/coremutex.c @@ -72,8 +72,8 @@ void _CORE_mutex_Initialize( _Thread_queue_Initialize( &the_mutex->Wait_queue, the_class, - _CORE_mutex_Is_priority( the_mutex_attributes ) ? - THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, + _CORE_mutex_Is_fifo( the_mutex_attributes ) ? + THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY, STATES_WAITING_FOR_MUTEX, proxy_extract_callout, CORE_MUTEX_TIMEOUT -- cgit v1.2.3