source: rtems/cpukit/score/src/schedulersimpleyield.c @ 5472ad41

4.115
Last change on this file since 5472ad41 was dacdda30, checked in by Ralf Corsepius <ralf.corsepius@…>, on 05/24/11 at 02:44:58

Remove white-spaces.

  • Property mode set to 100644
File size: 909 bytes
Line 
1/*
2 *  Scheduler Simple Handler / Yield
3 *
4 *  COPYRIGHT (c) 2011.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <rtems/system.h>
19#include <rtems/score/isr.h>
20#include <rtems/score/scheduler.h>
21#include <rtems/score/thread.h>
22#include <rtems/score/schedulersimple.h>
23
24void _Scheduler_simple_Yield( void )
25{
26  ISR_Level       level;
27  Thread_Control *executing;
28
29  executing = _Thread_Executing;
30  _ISR_Disable( level );
31
32    _Scheduler_simple_Ready_queue_requeue(&_Scheduler, executing);
33
34    _ISR_Flash( level );
35
36    _Scheduler_simple_Schedule();
37
38    if ( !_Thread_Is_heir( executing ) )
39      _Thread_Dispatch_necessary = true;
40
41  _ISR_Enable( level );
42}
Note: See TracBrowser for help on using the repository browser.