Changeset db6ec79e in rtems


Ignore:
Timestamp:
Jan 5, 2000, 6:30:09 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
69405459
Parents:
f388d36
Message:

Fixed recursive release for mutexes with nesting allowed.

Files:
2 edited

Legend:

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

    rf388d36 rdb6ec79e  
    8585  the_mutex->nest_count--;
    8686
    87   if ( the_mutex->nest_count != 0 )
     87  if ( the_mutex->nest_count != 0 ) {
     88    if ( the_mutex->Attributes.allow_nesting )
     89      return( CORE_MUTEX_STATUS_SUCCESSFUL );
    8890    return( CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED );
     91  }
    8992
    9093  _Thread_Executing->resource_count--;
  • cpukit/score/src/coremutexsurrender.c

    rf388d36 rdb6ec79e  
    8585  the_mutex->nest_count--;
    8686
    87   if ( the_mutex->nest_count != 0 )
     87  if ( the_mutex->nest_count != 0 ) {
     88    if ( the_mutex->Attributes.allow_nesting )
     89      return( CORE_MUTEX_STATUS_SUCCESSFUL );
    8890    return( CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED );
     91  }
    8992
    9093  _Thread_Executing->resource_count--;
Note: See TracChangeset for help on using the changeset viewer.