terminate handler global or per thread?

Brendan Miller catphive@catphive.net
Fri Aug 21 21:23:00 GMT 2009


Is the terminate handler normal static data or is it thread local? I'm
using GCC 3.4 and also 4.3.

I have some code that sets the terminate handler, but I also have a
bunch of other threads running, and I'm wondering if I need to set
their terminate handler as well separately, or if once is enough for
the whole process.

Thanks,
Brendan



More information about the Libstdc++ mailing list