Exposing gthreads, and making exceptions safe under cthreads

Melissa O'Neill oneill@cs.sfu.ca
Tue Sep 22 05:33:00 GMT 1998


Moments ago, I wrote:
> I certainly could alter my minimal wrapper for cthreads to use the POSIX
> threads function names and argument types (it's just changing gthread*
> to pthread* after all), but it wouldn't really be full POSIX threads.
> And, using the posix names might even be a worse mistake, since I'd be
> cluttering up the namespace so that people who *did* want to write a
> true POSIX threads package would get name clashes.

Actually, I suppose that if the above POSIX threads subset was in a
library that was linked with last, if the user had their own POSIX
threads library everything (including libgcc) would use that for
preference.

So, I guess I'm okay with having a POSIX-threads-subset library instead
of a gthreads library after all.

    Melissa.



More information about the Gcc mailing list