[RFC 0/6] Demangle minimal symbol names in worker threads

Tom Tromey tom@tromey.com
Mon Mar 11 22:39:00 GMT 2019


>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

Eli> Thanks, but is std::thread portable enough?  E.g., I recall problems
Eli> with it in MinGW.

I asked around and learned that std::thread should work fine if you have
winpthreads, which apparently is used by default for mingw-w64.

I don't actually know much about the mingw world, so I don't know if
that is good enough or not.  Could you say?

Jonathan Wakely also once wrote a port of libstdc++ to the Win32 API,
but couldn't find help with testing, so never checked it in.

Eli> Same question regarding delivering signals to threads.

If the signal thing is broken in this series, then it is probably
already broken today.  However I think it ought to be ok as SEGV is a
synchronous signal; that is, it is delivered to the faulting thread.

Does that address your concern here?

Tom



More information about the Gdb-patches mailing list