score: Simplify _CORE_barrier_Flush()

This commit is contained in:
Sebastian Huber
2016-04-17 15:57:03 +02:00
parent 5cc6bf4ce3
commit e781ddb2b2
2 changed files with 2 additions and 9 deletions

View File

@@ -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 );

View File

@@ -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 \
)