diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-02-11 10:50:09 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-02-14 13:30:16 +0000 |
commit | 6c4d75a485904e1b06964aea953479c167b507e8 (patch) | |
tree | 1e44209a15d4ebbd0984f0d8a6388d0679df5674 /src/tools/uic/cpp/cppwriteinitialization.cpp | |
parent | 737383875e3878beebedbc04492d8b8d9d13bc71 (diff) |
tst_QSemaphore: avoid deadlock on test failures
When one of the QCOMPAREs in Consumer::run() fails, the consumer
returns early, leaving the producer deadlocked in a QSemaphore's
acquire() call. Change these to tryAcquire() with a large timeout,
so the producer, too, eventually leaves run().
Change-Id: I7421d43305decd4754e09c8e092363594d1be06b
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions