fix Queue.h mpool bug

This commit is contained in:
tyustli 2019-09-30 14:35:48 +08:00
parent 076addc9ea
commit 7adbabca87
1 changed files with 1 additions and 1 deletions

View File

@ -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];
};
}