diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-02 23:57:16 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-02 19:12:43 +0200 |
commit | a2a38b160620d91bc3f895dadc4501c589998b9c (patch) | |
tree | 069b85d66253830a524b0ba61413c793a9662c60 /CREDITS | |
parent | f38f791a23a8acade7ea6554c80455dce7543dbd (diff) | |
download | ffmpeg-a2a38b160620d91bc3f895dadc4501c589998b9c.tar.gz |
avutil/cpu: Fix race condition in av_cpu_count()
av_cpu_count() intends to emit a debug message containing the number of
logical cores when called the first time. The check currently works with
a static volatile int; yet this does not help at all in case of
concurrent accesses by multiple threads. So replace this with an
atomic_int.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions