4.115
Last change
on this file since 25f5730f was
69aa3349,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/08/14 at 07:42:29
|
score: Simplify thread control initialization
The thread control block contains fields that point to application
configuration dependent memory areas, like the scheduler information,
the API control blocks, the user extension context table, the RTEMS
notepads and the Newlib re-entrancy support. Account for these areas in
the configuration and avoid extra workspace allocations for these areas.
This helps also to avoid heap fragementation and reduces the per thread
memory due to a reduced heap allocation overhead.
|
-
Property mode set to
100644
|
File size:
774 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Scheduler Default Allocate and Release Operation |
---|
5 | * |
---|
6 | * @ingroup ScoreScheduler |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 2011. |
---|
11 | * 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.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/score/scheduler.h> |
---|
23 | |
---|
24 | bool _Scheduler_default_Allocate( |
---|
25 | const Scheduler_Control *scheduler, |
---|
26 | Thread_Control *the_thread |
---|
27 | ) |
---|
28 | { |
---|
29 | ( void ) scheduler; |
---|
30 | ( void ) the_thread; |
---|
31 | |
---|
32 | return true; |
---|
33 | } |
---|
34 | |
---|
35 | void _Scheduler_default_Free( |
---|
36 | const Scheduler_Control *scheduler, |
---|
37 | Thread_Control *the_thread |
---|
38 | ) |
---|
39 | { |
---|
40 | ( void ) scheduler; |
---|
41 | ( void ) the_thread; |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.