Changeset 0f99198 in rtems


Ignore:
Timestamp:
Aug 6, 1996, 4:26:11 PM (25 years ago)
Author:
Mark Johannes <Mark.Johannes@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4bab8e2d
Parents:
a61f1a46
Message:

_CORE_mutex_Seize: added change priority case if the mutex was obtained.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/src/coremutex.c

    ra61f1a46 r0f99198  
    120120    executing->resource_count++;
    121121    _ISR_Enable( level );
     122    switch ( the_mutex->Attributes.discipline ) {
     123      case CORE_MUTEX_DISCIPLINES_FIFO:
     124      case CORE_MUTEX_DISCIPLINES_PRIORITY:
     125      case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT:
     126        break;
     127      case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
     128        _Thread_Change_priority(
     129          executing,
     130          the_mutex->Attributes.priority_ceiling
     131        );
     132        break;
     133    }
    122134    return;
    123135  }
  • cpukit/score/src/coremutex.c

    ra61f1a46 r0f99198  
    120120    executing->resource_count++;
    121121    _ISR_Enable( level );
     122    switch ( the_mutex->Attributes.discipline ) {
     123      case CORE_MUTEX_DISCIPLINES_FIFO:
     124      case CORE_MUTEX_DISCIPLINES_PRIORITY:
     125      case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT:
     126        break;
     127      case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
     128        _Thread_Change_priority(
     129          executing,
     130          the_mutex->Attributes.priority_ceiling
     131        );
     132        break;
     133    }
    122134    return;
    123135  }
Note: See TracChangeset for help on using the changeset viewer.