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

4.115
Last change on this file since 5472ad41 was 108c4b0, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/11 at 15:12:44

2011-02-18 Joel Sherrill <joel.sherrill@…>

  • sapi/include/confdefs.h, score/Makefile.am, score/include/rtems/score/scheduler.h, score/include/rtems/score/schedulerpriority.h, score/include/rtems/score/thread.h, score/inline/rtems/score/scheduler.inl, score/inline/rtems/score/schedulerpriority.inl, score/src/scheduler.c, score/src/schedulerpriority.c, score/src/schedulerpriorityblock.c, score/src/schedulerpriorityschedule.c, score/src/schedulerpriorityunblock.c, score/src/schedulerpriorityyield.c, score/src/threadchangepriority.c, score/src/threadclose.c, score/src/threadinitialize.c, score/src/threadsetpriority.c, score/src/threadsettransient.c: Significant clean up on Scheduler Plugin Interface. Names were shortened. Missing operations added. Many scheduler files had unneeded includes removed. Made pointer to scheduler information in Thread_Control and Scheduler_Control a void * pointer because the thread and scheduler wrapper should be unaware of scheduler types AND this is broken for user provided schedulers.
  • score/src/schedulerpriorityallocate.c, score/src/schedulerpriorityenqueue.c, score/src/schedulerpriorityenqueuefirst.c, score/src/schedulerpriorityextract.c, score/src/schedulerpriorityfree.c, score/src/schedulerpriorityupdate.c: New files.
  • score/src/schedulerprioritythreadschedulerallocate.c, score/src/schedulerprioritythreadschedulerfree.c, score/src/schedulerprioritythreadschedulerupdate.c: Removed.
  • Property mode set to 100644
File size: 991 bytes
Line 
1/*
2 *  Scheduler Handler
3 *
4 *  Copyright (C) 2010 Gedare Bloom.
5 *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  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/context.h>
20#include <rtems/score/interr.h>
21#include <rtems/score/isr.h>
22#include <rtems/score/object.h>
23#include <rtems/score/priority.h>
24#include <rtems/score/scheduler.h>
25#include <rtems/score/schedulerpriority.h>
26#include <rtems/score/thread.h>
27
28void _Scheduler_priority_Block(
29  Thread_Control   *the_thread
30)
31{
32  _Scheduler_priority_Ready_queue_extract( the_thread );
33
34  /* TODO: flash critical section? */
35
36  if ( _Thread_Is_heir( the_thread ) )
37     _Scheduler_priority_Schedule_body();
38
39  if ( _Thread_Is_executing( the_thread ) )
40    _Thread_Dispatch_necessary = true;
41
42}
Note: See TracBrowser for help on using the repository browser.