diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-17 15:57:03 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-21 07:29:37 +0200 |
commit | e781ddb2b2fb103a89503ba2c0343d535ade0076 (patch) | |
tree | 118541fc96d56da9c68ca78302273eaa16f5bbb6 | |
parent | score: Simplify _CORE_message_queue_Close() (diff) | |
download | rtems-e781ddb2b2fb103a89503ba2c0343d535ade0076.tar.bz2 |
score: Simplify _CORE_barrier_Flush()
-rw-r--r-- | cpukit/rtems/src/barrierdelete.c | 8 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/corebarrierimpl.h | 3 |
2 files changed, 2 insertions, 9 deletions
diff --git a/cpukit/rtems/src/barrierdelete.c b/cpukit/rtems/src/barrierdelete.c index 9ddfe01145..7dab0c01ba 100644 --- a/cpukit/rtems/src/barrierdelete.c +++ b/cpukit/rtems/src/barrierdelete.c @@ -33,13 +33,7 @@ rtems_status_code rtems_barrier_delete( switch ( location ) { case OBJECTS_LOCAL: - _CORE_barrier_Flush( - &the_barrier->Barrier, - CORE_BARRIER_WAS_DELETED, - NULL, - id - ); - + _CORE_barrier_Flush( &the_barrier->Barrier, NULL, 0 ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); _Objects_Put( &the_barrier->Object ); _Barrier_Free( the_barrier ); diff --git a/cpukit/score/include/rtems/score/corebarrierimpl.h b/cpukit/score/include/rtems/score/corebarrierimpl.h index 8754cecdac..1d774052d7 100644 --- a/cpukit/score/include/rtems/score/corebarrierimpl.h +++ b/cpukit/score/include/rtems/score/corebarrierimpl.h @@ -196,14 +196,13 @@ uint32_t _CORE_barrier_Do_release( /* Must be a macro due to the multiprocessing dependent parameters */ #define _CORE_barrier_Flush( \ the_barrier, \ - status, \ mp_callout, \ mp_id \ ) \ _Thread_queue_Flush( \ &( the_barrier )->Wait_queue, \ CORE_BARRIER_TQ_OPERATIONS, \ - status, \ + CORE_BARRIER_WAS_DELETED, \ mp_callout, \ mp_id \ ) |