This is the mail archive of the
mailing list for the GCC project.
Re: [patch] make 'pthreads' always an alias for 'posix'
Alexandre Oliva <firstname.lastname@example.org> writes:
| On Oct 7, 2003, DJ Delorie <email@example.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.