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:
771 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Scheduler Simple Priority Enqueue Ready Thread |
---|
5 | * @ingroup ScoreScheduler |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
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/isr.h> |
---|
24 | #include <rtems/score/thread.h> |
---|
25 | #include <rtems/score/schedulersimple.h> |
---|
26 | |
---|
27 | void _Scheduler_simple_Ready_queue_enqueue( |
---|
28 | Thread_Control *the_thread |
---|
29 | ) |
---|
30 | { |
---|
31 | Chain_Control *ready = (Chain_Control *) _Scheduler.information; |
---|
32 | |
---|
33 | _Scheduler_simple_Insert_priority_fifo( ready, the_thread ); |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.