mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
parent
7ee4936e0a
commit
586de322ab
1 changed files with 1 additions and 2 deletions
|
|
@ -55,9 +55,8 @@ void ff_thread_progress_report(ThreadProgress *pro, int n)
|
|||
if (atomic_load_explicit(&pro->progress, memory_order_relaxed) >= n)
|
||||
return;
|
||||
|
||||
atomic_store_explicit(&pro->progress, n, memory_order_release);
|
||||
|
||||
ff_mutex_lock(&pro->progress_mutex);
|
||||
atomic_store_explicit(&pro->progress, n, memory_order_release);
|
||||
ff_cond_broadcast(&pro->progress_cond);
|
||||
ff_mutex_unlock(&pro->progress_mutex);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue