source: rtems/cpukit/score/src/scheduler.c @ 469dc47

5
Last change on this file since 469dc47 was 4054c916, checked in by Sebastian Huber <sebastian.huber@…>, on 03/20/15 at 12:41:27

score: Add scheduler acquire/release

This is currently a global lock for all scheduler instances. It should
get replaced with one lock per scheduler instance in the future.

Update #2273.

  • Property mode set to 100644
File size: 746 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Scheduler Initialize
5 * @ingroup ScoreScheduler
6 */
7
8/*
9 *  Copyright (C) 2010 Gedare Bloom.
10 *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/score/schedulerimpl.h>
22
23ISR_LOCK_DEFINE( , _Scheduler_Lock, "Scheduler" )
24
25void _Scheduler_Handler_initialization(void)
26{
27  size_t n = _Scheduler_Count;
28  size_t i;
29
30  for ( i = 0 ; i < n ; ++i ) {
31    const Scheduler_Control *scheduler = &_Scheduler_Table[ i ];
32
33    ( *scheduler->Operations.initialize )( scheduler );
34  }
35}
Note: See TracBrowser for help on using the repository browser.