John, All-
A comment below.
-Stuart
From: owner-systemc-p1666-technical@eda.org [mailto:owner-systemc-p1666-technical@eda.org] On Behalf Of john.aynsley@doulos.com
Sent: Tuesday, January 11, 2011 5:22 AM
To: systemc-p1666-technical@eda.org
Subject: TLM issues
18.1 TLM-1 message passing interfaces
If objects with non-trivial destructors are passed through the TLM-1 message passing interfaces, it is important that internal copies are properly destroyed when they are no longer "needed".
Consider the case of a tlm_fifo< shared_ptr<foo> >. It is important, that the internal copies in the FIFO are correctly released, after they have been taken from the FIFO. This is not explicitly mentioned in the description of the interfaces (or in the lifetime section FWIW). This is also a bug in the tlm_fifo reference implementation currently.
Opinions?
[Stuart] I agree. We should at least recommend that models that use the TLM 1.0 interfaces properly use dtors for transaction objects.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Jan 11 11:24:14 2011
This archive was generated by hypermail 2.1.8 : Tue Jan 11 2011 - 11:24:17 PST