提交 7adbabca 编写于 作者: T tyustli

fix Queue.h mpool bug

上级 076addc9
......@@ -68,7 +68,7 @@ public:
private:
struct rt_messagequeue mID;
char mPool[(sizeof(struct rt_messagequeue) + sizeof(T)) * queue_sz];
char mPool[(sizeof(void *) + RT_ALIGN(sizeof(T), RT_ALIGN_SIZE)) * queue_sz];
};
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册