source: rtems/cpukit/score/src/scheduleredfblock.c @ 1b475860

4.115
Last change on this file since 1b475860 was 1b475860, checked in by Christopher Kerl <zargyyoyo@…>, on 11/29/12 at 19:39:17

score misc: Score misc: Clean up Doxygen #6 (GCI 2012)

This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/7976215

  • Property mode set to 100644
File size: 918 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Removes the Thread from Ready Queue
5 *
6 * @ingroup ScoreScheduler
7 */
8
9/*
10 *  Copyright (C) 2011 Petr Benes.
11 *  Copyright (C) 2011 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.com/license/LICENSE.
16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/system.h>
23#include <rtems/score/context.h>
24#include <rtems/score/priority.h>
25#include <rtems/score/scheduler.h>
26#include <rtems/score/scheduleredf.h>
27#include <rtems/score/thread.h>
28
29void _Scheduler_EDF_Block(
30  Thread_Control    *the_thread
31)
32{
33  _Scheduler_EDF_Extract( the_thread );
34
35  /* TODO: flash critical section? */
36
37  if ( _Thread_Is_heir( the_thread ) )
38    _Scheduler_EDF_Schedule();
39
40  if ( _Thread_Is_executing( the_thread ) )
41    _Thread_Dispatch_necessary = true;
42}
Note: See TracBrowser for help on using the repository browser.