source: rtems/cpukit/score/src/corebarrierrelease.c @ fce900b5

5
Last change on this file since fce900b5 was 631b3c8, checked in by Sebastian Huber <sebastian.huber@…>, on 05/23/16 at 09:40:18

score: Move thread queue MP callout to context

Drop the multiprocessing (MP) dependent callout parameter from the
thread queue extract, dequeue, flush and unblock methods. Merge this
parameter with the lock context into new structure Thread_queue_Context.
This helps to gets rid of the conditionally compiled method call
helpers.

  • Property mode set to 100644
File size: 778 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Manually releases the Barrier
5 *
6 * @ingroup ScoreBarrier
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2006.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.org/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/score/corebarrierimpl.h>
23
24uint32_t _CORE_barrier_Do_flush(
25  CORE_barrier_Control      *the_barrier,
26  Thread_queue_Flush_filter  filter,
27  Thread_queue_Context      *queue_context
28)
29{
30  the_barrier->number_of_waiting_threads = 0;
31  return _Thread_queue_Flush_critical(
32    &the_barrier->Wait_queue.Queue,
33    CORE_BARRIER_TQ_OPERATIONS,
34    filter,
35    queue_context
36  );
37}
Note: See TracBrowser for help on using the repository browser.