This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Thread support in GCC


I've localized the supporting module in GCC for
threads (gthr.h and gthr-xxx.h). These primitives
seems fairly easy to support, but there seems to
be a major flaw in them. While there is an initialization
macro, there is no descruction macro. This is problematic
when these functions need to allocate kernel reasources,
that must eventually be reclaimed. It is no problem
to free these up on termination, but if they build up
during execution, it would be problematic.

Are these objects created at load time and kept
for the duration of the run or are they sometimes
allocated and reallocated?

Leif Ekblad
www.rdos.net/rdos





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