From 8f431e61bb136b67a873e03b83c3cec88efe7a8d Mon Sep 17 00:00:00 2001 From: "gary.li.wenchao.4" Date: Thu, 1 Apr 2010 12:04:47 +0000 Subject: [PATCH] fixed parameters fro mempool_simple_init git-svn-id: https://rt-thread.googlecode.com/svn/trunk@570 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- examples/kernel/memp_simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/kernel/memp_simple.c b/examples/kernel/memp_simple.c index b232de5847..9d7bfd0000 100644 --- a/examples/kernel/memp_simple.c +++ b/examples/kernel/memp_simple.c @@ -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], sizeof(mempool), 80); + rt_mp_init(&mp, "mp1", &mempool[0], 80, sizeof(mempool), RT_IPC_FLAG_FIFO); /* 创建线程1 */ tid1 = rt_thread_create("t1",