summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coremutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/coremutex.c')
-rw-r--r--cpukit/score/src/coremutex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c
index 8fc3a406d9..ea5e759dc4 100644
--- a/cpukit/score/src/coremutex.c
+++ b/cpukit/score/src/coremutex.c
@@ -82,10 +82,10 @@ CORE_mutex_Status _CORE_mutex_Initialize(
_Thread_queue_Initialize( &the_mutex->Wait_queue );
- if ( _CORE_mutex_Is_priority( the_mutex_attributes ) ) {
- the_mutex->operations = &_Thread_queue_Operations_priority;
- } else {
+ if ( _CORE_mutex_Is_fifo( the_mutex_attributes ) ) {
the_mutex->operations = &_Thread_queue_Operations_FIFO;
+ } else {
+ the_mutex->operations = &_Thread_queue_Operations_priority;
}
return CORE_MUTEX_STATUS_SUCCESSFUL;