[ECOS] Per Thread Destructors Question

Jeffrey R. Szczepanski jrs@inscitek.com
Thu Jan 29 20:21:00 GMT 2004


I am writing an application that dynamically creates threads. After
consulting the documentation, it is not clear if per thread destructors
[created via cyg_thread_add_destructor()] can be used to do a
cyg_thread_delete() on one's own exited thread and follow that up with a
free() of the thread stack, etc?

In other words, does the destructor run in the context of the thread itself
or as part of kernel after the thread itself has exited - such that all
thread context can be free'd.

If this procedure is not legal what is the recommended way to allow all such
resources to be reclaimed on thread exit.

Thanks in advance!
Jeff

=================================
Jeffrey R. Szczepanski, jrs@inscitek.com
InSciTek Microsystems, Inc.
635 CrossKeys Office Park
Fairport, NY 14450

www.inscitek.com
InSciTek is home of Allworx 10x
www.allworx.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Jeffrey R. Szczepanski.vcf
Type: text/x-vcard
Size: 2292 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040129/95ef7326/attachment.vcf>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


More information about the Ecos-discuss mailing list