summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-04-14 03:52:56 +0000
committer[email protected] <[email protected]>2012-04-14 03:52:56 +0000
commit87195cf84ebc323b813899b19ff95b60ef8bc589 (patch)
treef009b0e6036ad38b7f4ba24d9e2685159321f3be /src/object.c
parent8061067343e2eda986616bb68aa52fe7fded5456 (diff)
Added memory heap object implementation; Added RT_LIST_OBJECT_INIT macro.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2046 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/object.c b/src/object.c
index ce8c437a57..f94ba5d407 100644
--- a/src/object.c
+++ b/src/object.c
@@ -46,6 +46,10 @@ struct rt_object_information rt_object_container[RT_Object_Class_Unknown] =
/* initialize object container - message queue */
{RT_Object_Class_MessageQueue, _OBJ_CONTAINER_LIST_INIT(RT_Object_Class_MessageQueue), sizeof(struct rt_messagequeue)},
#endif
+#ifdef RT_USING_MEMHEAP
+ /* initialize object container - memory heap */
+ {RT_Object_Class_MemHeap, _OBJ_CONTAINER_LIST_INIT(RT_Object_Class_MemHeap), sizeof(struct rt_memheap)},
+#endif
#ifdef RT_USING_MEMPOOL
/* initialize object container - memory pool */
{RT_Object_Class_MemPool, _OBJ_CONTAINER_LIST_INIT(RT_Object_Class_MemPool), sizeof(struct rt_mempool)},