diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-22 17:47:07 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-22 17:58:43 +0900 |
| commit | 3143d2d40ab5af1053596cd9b46c7034f22c4624 (patch) | |
| tree | 7ffa5b5287bb01125c5d5e313a5e392d1fe82d61 /examples/regexptester/regexptester.pro | |
| parent | edd8dbb5deeb0d86d0ab9713cf954f0667658d60 (diff) | |
| download | tqt-3143d2d40ab5af1053596cd9b46c7034f22c4624.tar.gz tqt-3143d2d40ab5af1053596cd9b46c7034f22c4624.zip | |
Fix usage of condition variable in TQThread which could lead to a thread being run multiple times in parallel.
Although highly unlikely, the following situation was possible:
- a thread is restarted while still running. The call to the second 'start()' blocks because the thread is still running
- the OS decides to randomly wake up the thread that called 'start()'
- a second thread is started and runs in parallel to the first thread, with obvious undefined behavior
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/regexptester/regexptester.pro')
0 files changed, 0 insertions, 0 deletions
