forked from Imagelibrary/rtems
score: Simplify _CORE_barrier_Flush()
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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 \
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user