4.115
Last change
on this file since f031df0e was
5618c37a,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/24/13 at 13:14:48
|
score: Create thread implementation header
Move implementation specific parts of thread.h and thread.inl into new
header file threadimpl.h. The thread.h contains now only the
application visible API.
Remove superfluous header file includes from various files.
|
-
Property mode set to
100644
|
File size:
849 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Scheduler Priority Block |
---|
5 | * @ingroup ScoreScheduler |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * Scheduler Handler |
---|
10 | * |
---|
11 | * Copyright (C) 2010 Gedare Bloom. |
---|
12 | * Copyright (C) 2011 On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.com/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #if HAVE_CONFIG_H |
---|
20 | #include "config.h" |
---|
21 | #endif |
---|
22 | |
---|
23 | #include <rtems/score/schedulerpriorityimpl.h> |
---|
24 | #include <rtems/score/threadimpl.h> |
---|
25 | |
---|
26 | void _Scheduler_priority_Block( |
---|
27 | Thread_Control *the_thread |
---|
28 | ) |
---|
29 | { |
---|
30 | _Scheduler_priority_Ready_queue_extract( the_thread ); |
---|
31 | |
---|
32 | /* TODO: flash critical section? */ |
---|
33 | |
---|
34 | if ( _Thread_Is_heir( the_thread ) ) |
---|
35 | _Scheduler_priority_Schedule_body(); |
---|
36 | |
---|
37 | if ( _Thread_Is_executing( the_thread ) ) |
---|
38 | _Thread_Dispatch_necessary = true; |
---|
39 | |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.