diff options
author | wm4 <wm4@nowhere> | 2016-10-30 18:29:24 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-10-30 18:29:24 +0100 |
commit | bc77565838bb32074c4798b8e4bf2c912c93c525 (patch) | |
tree | c43245c99e887b0f2546801216d074018885adae /waftools/waf_customizations.py | |
parent | b0ef3dd4fb49b8fe111b00ca44c30b9890be0282 (diff) | |
download | mpv-bc77565838bb32074c4798b8e4bf2c912c93c525.tar.bz2 mpv-bc77565838bb32074c4798b8e4bf2c912c93c525.tar.xz |
vo_opengl_cb: fix a race condition
When pthread_cond_timedwait(), the condition we are checking for could
be true or false. This code assumed it was always false.
This should be an extremely obscure race condition, since it can happen
only if timeout and the condition changing sort of happen at the same
time, or the lock is held for a longer time (which it normally isn't).
But I could observe it a few times.
Diffstat (limited to 'waftools/waf_customizations.py')
0 files changed, 0 insertions, 0 deletions