This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Inheriting from Cyg_Thread...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]