Userspace threads and C++ exceptions

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon Jun 19 00:44:00 GMT 2000


> I'm wondering if the GNU C++ runtime environment provides a
> mechanism which allows the use of C++ exceptions in userspace
> threads. So does anyone know of a way to setup a C++ exception stack
> which could be used when a userspace thread is created?

I'm not a exactly sure what you mean by "userspace thread", if the
ones created by pthread_create qualify, then yes, g++ provides such a
mechanism. Just configure gcc with --enable-threads, and the exception
handling will be thread-safe.

Regards,
Martin


More information about the Gcc mailing list