Hi, Il 12/10/2018 10:58, René J. V. Bertin ha scritto:
Did some backtracing in a debugger; I get an almost identical backtrace from the event loop (and not the signal handler) when I call my slot - through a QSocketNotifier (after writing to a pipe) - through a QueuedConnection connection invoked from an emit in the signal handlerThe latter solution also makes it more straightforward to pass the signal number to the actual handler. Is this safe? If it is, wouldn't it be a nice little addition to QCoreApplication?
It's not safe. Emitting a signal with a queued invocation will allocate memory. So don't do it from a signal handler.
My 2 c, -- Giuseppe D'Angelo | [email protected] | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com KDAB - The Qt, C++ and OpenGL Experts
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
