diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-03 10:52:53 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-03 10:55:31 +0100 |
commit | 6e31b56f95dfde7d6bc2d6d9f03541446f767c62 (patch) | |
tree | fef1da10c90a799be251fdcb946cb9205b3fe842 /cpukit/rtems | |
parent | tmtests/tmfine01: Update screen file (diff) | |
download | rtems-6e31b56f95dfde7d6bc2d6d9f03541446f767c62.tar.bz2 |
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.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/semcreate.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c index c38e69f7ed..825e445b35 100644 --- a/cpukit/rtems/src/semcreate.c +++ b/cpukit/rtems/src/semcreate.c @@ -148,10 +148,7 @@ rtems_status_code rtems_semaphore_create( &the_semaphore->Core_control.Mutex.Recursive.Mutex, executing ); - - if ( variant == SEMAPHORE_VARIANT_MUTEX_INHERIT_PRIORITY ) { - ++executing->resource_count; - } + ++executing->resource_count; } status = STATUS_SUCCESSFUL; |