diff options
author | Mauro Persano <mauro.persano@kdab.com> | 2016-01-05 19:42:47 -0200 |
---|---|---|
committer | Volker Krause <volker.krause@kdab.com> | 2016-01-08 07:46:19 +0000 |
commit | 8422eca046937d05da92596345be76e55b354d23 (patch) | |
tree | ba0e173879ee3f249dd914309044c0db49b3b449 /examples | |
parent | cf596337cd68577b93bb868137d52b713c347066 (diff) |
Fix race on QAspectManager shutdown
When QAspectManager::quit() is called, the exec() loop finishes. Then
QAspectThread calls shutdown() and deletes the QAspectManager instance.
However, in certain cases, the QAspectManager object can be deleted before
QAspectThread::quit() has a chance to finish running, causing a crash when
it tries to acquire the m_waitForEndOfExec semaphore.
Make exec() wait for quit() to prevent this.
Change-Id: I579e3e6b5684984ec32497852d94cc050cccbef5
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions