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

Re: Userspace threads and C++ exceptions


> 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

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