Changeset 6e31b56f in rtems for cpukit/rtems


Ignore:
Timestamp:
Nov 3, 2016, 9:52:53 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.