Il 15/06/20 12:58, Bernhard Lindner ha scritto:
Are there any functions in Qt that are considered async-handler-safe?
No, as any of them may allocate memory.See https://doc.qt.io/qt-5/unix-signals.html for the textbook solution (self pipe trick).
On Linux you can also use signalfd(2) to achieve the same without the burden of a custom signal handler.
HTH, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | 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 Interest@qt-project.org https://lists.qt-project.org/listinfo/interest