diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-30 11:39:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-06 09:08:20 +0200 |
commit | 9809d6e08264525ea58839b98e6d90121b841196 (patch) | |
tree | 7ccbdd61436c18d1e1bae9033a3907afb5bff629 /cpukit/score/include/rtems/score/corebarrierimpl.h | |
parent | score: Fix _Thread_queue_Extract_locked() (diff) | |
download | rtems-9809d6e08264525ea58839b98e6d90121b841196.tar.bz2 |
score: _Thread_queue_Flush() parameter changes
Change _Thread_queue_Flush() into a macro that invokes
_Thread_queue_Do_flush() with the parameter set defined by
RTEMS_MULTIPROCESSING. For multiprocessing configurations add the
object identifier to avoid direct use of the thread wait information.
Use mp_ prefix for multiprocessing related parameters.
Rename Thread_queue_Flush_callout to Thread_queue_MP_callout since this
type will be re-used later for other operations as well.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/corebarrierimpl.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/cpukit/score/include/rtems/score/corebarrierimpl.h b/cpukit/score/include/rtems/score/corebarrierimpl.h index 87ea545747..7e1c0ab31a 100644 --- a/cpukit/score/include/rtems/score/corebarrierimpl.h +++ b/cpukit/score/include/rtems/score/corebarrierimpl.h @@ -140,21 +140,19 @@ uint32_t _CORE_barrier_Release( CORE_barrier_API_mp_support_callout api_barrier_mp_support ); -/** - * This routine assists in the deletion of a barrier by flushing the - * associated wait queue. - * - * @param[in] _the_barrier is the barrier to flush - * @param[in] _remote_extract_callout is the routine to invoke if the - * thread unblocked is remote - * @param[in] _status is the status to be returned to the unblocked thread - */ -#define _CORE_barrier_Flush( _the_barrier, _remote_extract_callout, _status) \ +/* 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), \ + &( the_barrier )->Wait_queue, \ CORE_BARRIER_TQ_OPERATIONS, \ - (_remote_extract_callout), \ - (_status) \ + status, \ + mp_callout, \ + mp_id \ ) /** |