1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavutil
Andreas Rheinhardt a2a38b1606 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>
2021-04-02 19:12:43 +02:00
..
2021-04-01 14:47:00 +02:00
2020-04-23 08:05:15 +08:00
2020-04-23 08:05:15 +08:00
2021-03-31 23:09:35 +02:00
2020-05-26 06:47:31 +02:00
2021-04-01 14:52:18 +02:00
2020-05-23 15:51:44 +02:00
2020-05-23 15:51:44 +02:00
2021-03-14 23:29:51 +01:00
2021-02-27 04:21:05 +01:00
2021-02-27 04:21:05 +01:00