summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengltexturecache.cpp
diff options
context:
space:
mode:
authorEl Mehdi Fekari <mfekari@blackberry.com>2013-12-19 11:15:34 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-02 19:01:26 +0100
commit61e1bcb4dd4995c9a8385aad6f3da10f53de2265 (patch)
tree58a93c3947278bddec6d3f8fb177ea50147e40fd /src/gui/opengl/qopengltexturecache.cpp
parente5fd2417701c1ecf35a3c771c647d931cef3f375 (diff)
QLogging: Avoid infinite loop in error case
If the user code installs a message handler that uses any API that prints logs (handled by qt_message_print) then this will lead to an infinite loop. This patch adds a thread local storage to check if the message handler is done before the thread is calling it again. Note: This check is performed only if the compiler supports thread_local (__declspec(thread) for MSVC). Change-Id: I43b0460b8f39b26a18de48a5652a5e55f0b336f8 Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/gui/opengl/qopengltexturecache.cpp')
0 files changed, 0 insertions, 0 deletions