Commit 46c73be4 authored by Thiago Macieira's avatar Thiago Macieira Committed by Jani Heikkinen
Browse files

Fix livelock at application exit if threads were running


This only happened in debug mode, though, because in release mode the
warning wasn't printed and the socket notifier was removed. In debug
mode, this loop in closingDown() never exited:

    while (!d->sn_read.isEmpty())
        unregisterSocketNotifier((*(d->sn_read.begin()))->obj);

[ChangeLog][QtCore][QThread] Fixed a bug that would cause debug-mode
applications to live lock on exit if they had a global static containing
a QThread that wasn't properly exited.

Task-number: QTBUG-49870
Change-Id: I7a9e11d7b64a4cc78e24ffff142e457a4540d6b6
Reviewed-by: default avatarMat Sutcliffe <oktal3700@gmail.com>
Reviewed-by: default avatarRoland Winklmeier <Roland.M.Winklmeier@gmail.com>
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
parent e5e9387f
No related merge requests found
Showing with 13 additions and 5 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment