This is the mail archive of the gcc-patches@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]

Re: [patch] make 'pthreads' always an alias for 'posix'


Alexandre Oliva <aoliva@redhat.com> writes:

| On Oct  7, 2003, DJ Delorie <dj@redhat.com> wrote:
| 
| >> DJ, Alex, opinions?  Is there something I'm missing?
| 
| > It would be better to ask the people maintaining the thread files.
| > They may be in the process of deprecating the "pthreads" name, so I'd
| > get their OK first.  Since there is no separate gthr-pthreads, I see
| > no *syntactical* reason not to apply your patch, but note that it will
| > allow --enable-threads=pthreads on platforms that previously didn't
| > allow it.
| 
| And without a corresponding change in libstdc++ (and maybe libjava and
| libobjc, I don't recall whether they actually care about the thread
| model?), things might break.

The doc says -pthread might be removed from future version.  I
would suggest we make that removal now.

The thread model is used in V3 for thread safety support in malloc()
and things like that.

-- Gaby


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