source: rtems/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c @ 8f420927

4.115
Last change on this file since 8f420927 was 8f420927, checked in by Sebastian Huber <sebastian.huber@…>, on 06/12/13 at 09:39:49

scheduler: Simplify simple scheduler

Add and use _Scheduler_simple_Insert_priority_fifo_order(),
_Scheduler_simple_Insert_priority_lifo_order(),
_Scheduler_simple_Insert_priority_fifo() and
_Scheduler_simple_Insert_priority_lifo().

  • Property mode set to 100644
File size: 747 bytes
RevLine 
[f2f63d1]1/**
2 *  @file
[0118ed6]3 *
[f2f63d1]4 *  @brief Scheduler Simple Ready Queue Enqueue First
5 *  @ingroup ScoreScheduler
6 */
7
8/*
[0118ed6]9 *  COPYRIGHT (c) 2011.
10 *  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.com/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/system.h>
22#include <rtems/score/chain.h>
23#include <rtems/score/thread.h>
24#include <rtems/score/schedulersimple.h>
25
[68c6900d]26void _Scheduler_simple_Ready_queue_enqueue_first(
[0118ed6]27  Thread_Control    *the_thread
28)
29{
[8f420927]30  Chain_Control *ready = (Chain_Control *) _Scheduler.information;
[0118ed6]31
[8f420927]32  _Scheduler_simple_Insert_priority_lifo( ready, the_thread );
[0118ed6]33}
Note: See TracBrowser for help on using the repository browser.