4.115
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 | |
---|
29 | void _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.