source: rtems/cpukit/score/src/corebarrier.c @ 2d7ae960

4.115
Last change on this file since 2d7ae960 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  SuperCore Barrier Handler
3 *
4 *  DESCRIPTION:
5 *
6 *  This package is part of the implementation of the SuperCore Barrier Handler.
7 *
8 *  COPYRIGHT (c) 1989-2006.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 */
15
16#if HAVE_CONFIG_H
17#include "config.h"
18#endif
19
20#include <rtems/system.h>
21#include <rtems/score/corebarrier.h>
22#include <rtems/score/states.h>
23#include <rtems/score/thread.h>
24#include <rtems/score/threadq.h>
25
26/*
27 *  _CORE_barrier_Initialize
28 *
29 *  This function initialize a barrier and sets the initial value based
30 *  on the given count.
31 *
32 *  Input parameters:
33 *    the_barrier            - the barrier control block to initialize
34 *    the_barrier_attributes - the attributes specified at create time
35 *
36 *  Output parameters:  NONE
37 */
38
39void _CORE_barrier_Initialize(
40  CORE_barrier_Control       *the_barrier,
41  CORE_barrier_Attributes    *the_barrier_attributes
42)
43{
44
45  the_barrier->Attributes                = *the_barrier_attributes;
46  the_barrier->number_of_waiting_threads = 0;
47
48  _Thread_queue_Initialize(
49    &the_barrier->Wait_queue,
50    THREAD_QUEUE_DISCIPLINE_FIFO,
51    STATES_WAITING_FOR_BARRIER,
52    CORE_BARRIER_TIMEOUT
53  );
54}
Note: See TracBrowser for help on using the repository browser.