diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-10 10:41:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-12 09:08:37 +0100 |
commit | 24851567c38f573e9176529e9ca431fbf80c6cef (patch) | |
tree | bd75506122c9a310228d1c58fba7544a5e05dd65 /cpukit/include/rtems/score/thread.h | |
parent | score: Add _Objects_Free_objects_block() (diff) | |
download | rtems-24851567c38f573e9176529e9ca431fbf80c6cef.tar.bz2 |
score: Split up objects allocation
Split up the different objects allocation methods into separate
functions. This helps to avoid a dependency on the workspace in case no
objects or a static set of objects is configured.
Change license to BSD-2-Clause according to file histories.
Update #3053.
Update #3835.
Diffstat (limited to 'cpukit/include/rtems/score/thread.h')
-rw-r--r-- | cpukit/include/rtems/score/thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/thread.h b/cpukit/include/rtems/score/thread.h index e438549ff8..3d977749ff 100644 --- a/cpukit/include/rtems/score/thread.h +++ b/cpukit/include/rtems/score/thread.h @@ -1023,6 +1023,7 @@ Thread_Information name##_Information = { \ { \ _Objects_Build_id( api, cls, 1, 0 ), \ NULL, \ + _Objects_Allocate_none, \ 0, \ 0, \ 0, \ @@ -1048,6 +1049,8 @@ Thread_Information name##_Information = { \ { \ _Objects_Build_id( api, cls, 1, _Objects_Maximum_per_allocation( max ) ), \ name##_Local_table, \ + _Objects_Is_unlimited( max ) ? \ + _Objects_Allocate_unlimited : _Objects_Allocate_static, \ 0, \ _Objects_Is_unlimited( max ) ? _Objects_Maximum_per_allocation( max ) : 0, \ sizeof( Thread_Configured_control ), \ |