mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/362/head
parent
f38f791a23
commit
a2a38b1606
1 changed files with 2 additions and 4 deletions
Loading…
Reference in new issue