This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Exposing gthreads, and making exceptions safe under cthreads
- To: egcs at cygnus dot com
- Subject: Re: Exposing gthreads, and making exceptions safe under cthreads
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 22 Sep 1998 00:14:34 -0600
- Newsgroups: cygnus.egcs
- Organization: Cygnus Solutions
- References: <199809200655.XAA26965.cygnus.egcs@aldrington.ppp.cs.sfu.ca>
- Reply-To: tromey at cygnus dot com
>>>>> "Melissa" == Melissa O'Neill <oneill@cs.sfu.ca> writes:
Melissa> Currently, EGCS can't be compiled with the configure option
Melissa> --enable-threads under systems that use cthreads (aka mach
Melissa> threads).
Melissa> [ ... ]
Melissa> Cthreads only provides *one* pointer for thread-specific
Melissa> data.
Melissa> [ ... ]
Melissa> Given this situation, I propose that we expose the gthreads
Melissa> package to the user, rather than keep it internal to the
Melissa> compiler sources.
My two cents: this seems like a lot of effort to work around a design
bug in one obscure (to me!) thread system.
It seems to me that you could also implement this using a hash table
(or moral equivalent) in gthr-mach.h. That is, nothing says you must
use the underlying thread system's mechanism for thread-specific data.
Tom