summaryrefslogtreecommitdiffstats
path: root/libavutil/tests
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2020-12-02 23:57:16 +0100
committerAndreas Rheinhardt <[email protected]>2021-04-02 19:12:43 +0200
commita2a38b160620d91bc3f895dadc4501c589998b9c (patch)
tree069b85d66253830a524b0ba61413c793a9662c60 /libavutil/tests
parentf38f791a23a8acade7ea6554c80455dce7543dbd (diff)
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 <[email protected]>
Diffstat (limited to 'libavutil/tests')
0 files changed, 0 insertions, 0 deletions