This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Userspace threads and C++ exceptions
- To: mgittens at gits dot nl
- Subject: Re: Userspace threads and C++ exceptions
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Mon, 19 Jun 2000 09:42:40 +0200
- CC: gcc at gcc dot gnu dot org
- References: <000501bfd9bd$6fd2de40$25996dc2@caleb..gits.nl>
> 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