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-23 20:36:29 +0900 |
| commit | cc42c3a8ea0022b8777ed95c1f73b2a5845c5587 (patch) | |
| tree | 48a1ba0dc3871583d4e05b959f9cc72ef0214dc0 /doc/man/man3/TQSlider.3qt | |
| parent | 67cb0f6762768ee0d32adef1d7307ff7bb985407 (diff) | |
| download | tqt-cc42c3a8ea0022b8777ed95c1f73b2a5845c5587.tar.gz tqt-cc42c3a8ea0022b8777ed95c1f73b2a5845c5587.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>
(cherry picked from commit 3143d2d40ab5af1053596cd9b46c7034f22c4624)
Diffstat (limited to 'doc/man/man3/TQSlider.3qt')
0 files changed, 0 insertions, 0 deletions
