summaryrefslogtreecommitdiffstats
path: root/examples/network/network-chat/connection.cpp
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-06-12 14:52:23 +0200
committerMarc Mutz <[email protected]>2025-06-16 17:55:24 +0200
commit39af5f1794aaa3120c75d10efdf35df3a84a0dea (patch)
tree20f2df7fdbf44fa6898565683b7f49f87a4820ff /examples/network/network-chat/connection.cpp
parent30a94c63eef1b6f629a048ea8f4cc91e211c4587 (diff)
tst_QPointer: ensure we reap all threads in raceCondition()HEADdev
The old code would return from the test function upon the first wait() failure. It should, however, reap (join) all the following threads, too, or fail trying. So drag the QVERIFY out of the loop, ensuring that all threads got wait()ed upon. This can, in theory, wait for 20*30s = 10min now, but the test function will be killed by the watchdog after 300s = 5min, and that at least doesn't leave unreaped threads around, so is still preferable. As a half-way drive-by, port to chrono timeouts. Amends 253f34082f526ff1ffd9eaefac73cc9aa616ab2a. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: Icdd36549ecf15fc77b97774aa2ef5b9384a2c67b Reviewed-by: David Faure <[email protected]>
Diffstat (limited to 'examples/network/network-chat/connection.cpp')
0 files changed, 0 insertions, 0 deletions