diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-24 15:43:19 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-07-23 08:01:13 +0200 |
commit | d7665823b208daefb6855591d808e1f3075cedcb (patch) | |
tree | 2080d79568c92ae40f9a49f3f82095307766cb1f /cpukit/rtems/include/rtems/rtems/tasksimpl.h | |
parent | score: Introduce Thread_queue_Queue (diff) | |
download | rtems-d7665823b208daefb6855591d808e1f3075cedcb.tar.bz2 |
score: Introduce Thread_queue_Heads
Move the storage for the thread queue heads to the threads. Each thread
provides a set of thread queue heads allocated from a dedicated memory
pool. In case a thread blocks on a queue, then it lends its heads to
the queue. In case the thread unblocks, then it takes a free set of
threads from the queue. Since a thread can block on at most one queue
this works. This mechanism is used in FreeBSD. The motivation for this
change is to reduce the memory demands of the synchronization objects.
On a 32-bit uni-processor configuration the Thread_queue_Control size is
now 8 bytes, compared to 64 bytes in RTEMS 4.10 (other changes reduced
the size as well).
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/tasksimpl.h')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/tasksimpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/tasksimpl.h b/cpukit/rtems/include/rtems/rtems/tasksimpl.h index b8f91d3607..d35f6816c9 100644 --- a/cpukit/rtems/include/rtems/rtems/tasksimpl.h +++ b/cpukit/rtems/include/rtems/rtems/tasksimpl.h @@ -49,7 +49,7 @@ extern "C" { * The following instantiates the information control block used to * manage this class of objects. */ -RTEMS_TASKS_EXTERN Objects_Information _RTEMS_tasks_Information; +RTEMS_TASKS_EXTERN Thread_Information _RTEMS_tasks_Information; /** * @brief RTEMS Task Manager Initialization @@ -88,7 +88,7 @@ RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate(void) _Thread_Kill_zombies(); return (Thread_Control *) - _Objects_Allocate_unprotected( &_RTEMS_tasks_Information ); + _Objects_Allocate_unprotected( &_RTEMS_tasks_Information.Objects ); } /** |