提交 3048d239 编写于 作者: qiuyiuestc's avatar qiuyiuestc

fix size issue in memp_simple.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@886 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 767c64e6
......@@ -74,7 +74,7 @@ int mempool_simple_init()
for (i = 0; i < 48; i ++) ptr[i] = RT_NULL;
/* 初始化内存池对象 */
rt_mp_init(&mp, "mp1", &mempool[0], 80, sizeof(mempool));
rt_mp_init(&mp, "mp1", &mempool[0], sizeof(mempool), 80);
/* 创建线程1 */
tid1 = rt_thread_create("t1",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册