Module: xenomai-head Branch: master Commit: cf9e1a5ee1814f5dc8f4b216b59912fa2fc3f1a4 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=cf9e1a5ee1814f5dc8f4b216b59912fa2fc3f1a4
Author: Patrice Kadionik <kadio...@enseirb.fr> Date: Thu Oct 22 14:38:12 2009 +0200 native: Avoid double release on queue/heap auto-cleanup Commit 3a7330b164 also requires this patch to avoid that the queue and heap objects are released twice on automatic cleanup (via the xnheap release handler and via the ppd object queue flush). Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> --- include/native/heap.h | 2 +- include/native/queue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/native/heap.h b/include/native/heap.h index 5444a43..0c2a7a2 100644 --- a/include/native/heap.h +++ b/include/native/heap.h @@ -117,7 +117,7 @@ void __native_heap_pkg_cleanup(void); static inline void __native_heap_flush_rq(xnqueue_t *rq) { - xeno_flush_rq(RT_HEAP, rq, heap); + xeno_flush_rq_norelease(RT_HEAP, rq, heap); } int rt_heap_delete_inner(RT_HEAP *heap, diff --git a/include/native/queue.h b/include/native/queue.h index 77925c2..2951c42 100644 --- a/include/native/queue.h +++ b/include/native/queue.h @@ -129,7 +129,7 @@ void __native_queue_pkg_cleanup(void); static inline void __native_queue_flush_rq(xnqueue_t *rq) { - xeno_flush_rq(RT_QUEUE, rq, queue); + xeno_flush_rq_norelease(RT_QUEUE, rq, queue); } ssize_t rt_queue_receive_inner(RT_QUEUE *q, void **bufp, _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git