This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Inheriting from Cyg_Thread...
- From: "Tony Butt" <tjb at cea dot com dot au>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 18 May 2004 14:48:37 +1000
- Subject: [ECOS] Inheriting from Cyg_Thread...
- Organization: CEA Technologies
Hi,
Does anyone have any thoughts on the viability of creating a new Thread
class which inherits from the Cyg_Thread class, and adds extra functionality
- eg queueing any malloc'ed memory for
processing by a garbage collector when the destructor is called.
I've done it, it seems to work without breaking anything (especially the
scheduler...).
I read carefully a previous email about freeing resources in thread
destructors, but I have seen no mention about sub-classing from
Cyg_Thread...
Thanks in advance,
Tony Butt
Software Engineer
CEA Technologies
tjb@cea.com.au
Ph: 02 62130195
Fax: 02 62130013
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss