summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-17 21:33:07 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-17 21:33:07 +0000
commit1d9d044ec727c47b215a8a0e14302e4cb230f948 (patch)
tree4aac6f86d7a39d1ae0090a84180ac0614dbc7d56
parentadded routine _POSIX_Timespec_subtract (diff)
downloadrtems-1d9d044ec727c47b215a8a0e14302e4cb230f948.tar.bz2
Reversed logic in conditional to correctly distinguish between
FIFO and priority disciplines.
-rw-r--r--c/src/exec/score/src/coremutex.c4
-rw-r--r--cpukit/score/src/coremutex.c4
2 files changed, 4 insertions, 4 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
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