All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] native heap services and overloading new
@ 2006-08-01 18:25 Brandt Erickson
  2006-08-02 19:09 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Brandt Erickson @ 2006-08-01 18:25 UTC (permalink / raw)
  To: xenomai

I have some code where I'd like to be able to dynamically allocate memory
in realtime.  Since the code is written in C++, I was thinking of just
making a huge global RT_HEAP and overloading the new and delete operators
to use the rt_heap_alloc and rt_heap_free functions.  First off, I'm
wondering if there are any caveats to this sort of thing that wouldn't be
obvious to someone new to xenomai like myself.  Second, if I fail to call
rt_heap_delete before the program terminates, does the heap remain
registered hang potentially causing problems when I try to re-allocate the
heap when the program is run again?  Thanks.
-Brandt



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-03 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-01 18:25 [Xenomai-help] native heap services and overloading new Brandt Erickson
2006-08-02 19:09 ` Jan Kiszka
2006-08-03 17:13   ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.