mirror of https://github.com/FFmpeg/FFmpeg.git
This fixes a data race warning by ThreadSanitizer. FrameThreadContext.die is read by all the worker threads but is not protected by any mutex. Move it to PerThreadContext so that each worker thread reads its own copy of |die|, which can then be protected with PerThreadContext.mutex. Signed-off-by: Wan-Teh Chang <wtc@google.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>pull/189/head
parent
f1148390d7
commit
4845f0720e
1 changed files with 5 additions and 6 deletions
Loading…
Reference in new issue