Module: xenomai-forge Branch: master Commit: 6cf4540bf823bfe0761455295c3b3cfb9ca052e3 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=6cf4540bf823bfe0761455295c3b3cfb9ca052e3
Author: Philippe Gerum <r...@xenomai.org> Date: Tue Dec 13 19:29:52 2011 +0100 alchemy/queue: name internal memory pool after queue --- lib/alchemy/queue.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/alchemy/queue.c b/lib/alchemy/queue.c index f499234..218f2d1 100644 --- a/lib/alchemy/queue.c +++ b/lib/alchemy/queue.c @@ -63,16 +63,17 @@ int rt_queue_create(RT_QUEUE *queue, const char *name, qcb = xnmalloc(sizeof(*qcb)); if (qcb == NULL) goto out; + + alchemy_build_name(qcb->name, name, &queue_namegen); /* * The message pool has to be part of the main heap for proper * sharing between processes. */ - if (heapobj_init_shareable(&qcb->hobj, NULL, poolsize)) { + if (heapobj_init_shareable(&qcb->hobj, qcb->name, poolsize)) { xnfree(qcb); goto out; } - alchemy_build_name(qcb->name, name, &queue_namegen); qcb->magic = queue_magic; qcb->mode = mode; qcb->limit = qlimit; _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git