diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-09-17 21:33:07 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-09-17 21:33:07 +0000 |
commit | 1d9d044ec727c47b215a8a0e14302e4cb230f948 (patch) | |
tree | 4aac6f86d7a39d1ae0090a84180ac0614dbc7d56 /c/src/exec | |
parent | added routine _POSIX_Timespec_subtract (diff) | |
download | rtems-1d9d044ec727c47b215a8a0e14302e4cb230f948.tar.bz2 |
Reversed logic in conditional to correctly distinguish between
FIFO and priority disciplines.
Diffstat (limited to 'c/src/exec')
-rw-r--r-- | c/src/exec/score/src/coremutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/score/src/coremutex.c b/c/src/exec/score/src/coremutex.c index 38f799b134..f68d038e76 100644 --- a/c/src/exec/score/src/coremutex.c +++ b/c/src/exec/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 |