On Tuesday 10 April 2001 11:07, Ivan Martinez wrote:
> I did. I found discussions about modules implementing dynamic memory
> allocation in realtime code, but I couldn't figure out if they would allow
> me to allocate objects.
All memory management needed for that is based on new and delete.
> I tried "realtime C++", "real time C++", "real time
> objects allocation", etc, as search criteria, but none of them seemed to
> lead me to relevant information. Maybe you would be so kind of pointing me
> to the right postings. Thank you.
What are you looking for in particular? The code generated by the C++
compiler for an object instantiation is basically equivalent to
myclass_t *myobject;
myobject = malloc(sizeof(myclass_t));
if(!myobject)
<throw exception>;
<calls to any base class constructors here>
myclass_t__myclass_t(myobject);
where "myclass_t__myclass_t()" is the constructor converted into a C style
call. (I'm using malloc() here to avoid confusion with the C++ semantics of
new.)
//David
.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/