RBN Posted August 11, 2022 Report Share Posted August 11, 2022 Hello, I am new to TLM and I am looking to implement a model that will be using b_transport() calls with tlm_generic_payload and a custom extension. If we allocate the custom extension objects from the heap, when/where can I safely deallocate the custom extension object? Also, while defining the custom extensions, we have to implement clone() and copy_from() functions (inherited form tlm_extension_base). I want to know when do these functions called? In the TLM extension examples I have seen, the clone() function definition includes a call to new() to allocate a new object. Is this clone deallocated (deleted) by the framework/library or is the user responsible for deallocating the clone? If we want to use a memory pool for the extension objects, how can we do that? Thanks! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.