Changeset 6e31b56f in rtems


Ignore:
Timestamp:
Nov 3, 2016, 9:52:53 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
0dd49d0
Parents:
0154dea3
git-author:
Sebastian Huber <sebastian.huber@…> (11/03/16 09:52:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/03/16 09:55:31)
Message:

rtems: Fix binary semaphore resource count

Binary semaphores (not simple binary semaphores) maintain the resource
count since 8797c76addf22a2f0ffc3717ff977695e35b9b0b. Do this also for
initially locked binary semaphores.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/semcreate.c

    r0154dea3 r6e31b56f  
    149149          executing
    150150        );
    151 
    152         if ( variant == SEMAPHORE_VARIANT_MUTEX_INHERIT_PRIORITY ) {
    153           ++executing->resource_count;
    154         }
     151        ++executing->resource_count;
    155152      }
    156153
  • testsuites/tmtests/tm02/task1.c

    r0154dea3 r6e31b56f  
    7171  test_init();
    7272
    73   status = rtems_task_delete( RTEMS_SELF );
    74   directive_failed( status, "rtems_task_delete" );
     73  status = rtems_task_suspend( RTEMS_SELF );
     74  directive_failed( status, "rtems_task_suspend" );
    7575}
    7676
Note: See TracChangeset for help on using the changeset viewer.