Module: xenomai-2.4
Branch: master
Commit: a168e3c793364a6e4932680e6497a7390071b960
URL:    
http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=a168e3c793364a6e4932680e6497a7390071b960

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 9ace196..b93efd5 100644
--- a/include/native/heap.h
+++ b/include/native/heap.h
@@ -115,7 +115,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 75e009c..74ce12a 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);
 }
 
 int rt_queue_delete_inner(RT_QUEUE *q,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to