diff options
author | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-06 16:26:11 +0000 |
---|---|---|
committer | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-06 16:26:11 +0000 |
commit | 0f991988451f79b4ccae109b03374189f3f32760 (patch) | |
tree | 99c372799585c1b864294e2a44cc383a6c0be073 /c/src/exec/score | |
parent | _POSIX_Threads_Delete_extension: reorder to eliminate use of local pointer (diff) | |
download | rtems-0f991988451f79b4ccae109b03374189f3f32760.tar.bz2 |
_CORE_mutex_Seize: added change priority case if the mutex was obtained.
Diffstat (limited to 'c/src/exec/score')
-rw-r--r-- | c/src/exec/score/src/coremutex.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/c/src/exec/score/src/coremutex.c b/c/src/exec/score/src/coremutex.c index ea347f5148..a5a27d8d34 100644 --- a/c/src/exec/score/src/coremutex.c +++ b/c/src/exec/score/src/coremutex.c @@ -119,6 +119,18 @@ void _CORE_mutex_Seize( the_mutex->nest_count = 1; executing->resource_count++; _ISR_Enable( level ); + switch ( the_mutex->Attributes.discipline ) { + case CORE_MUTEX_DISCIPLINES_FIFO: + case CORE_MUTEX_DISCIPLINES_PRIORITY: + case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: + break; + case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: + _Thread_Change_priority( + executing, + the_mutex->Attributes.priority_ceiling + ); + break; + } return; } |