MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_thread_progress_report

Function ff_thread_progress_report

libavcodec/threadprogress.c:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void ff_thread_progress_report(ThreadProgress *pro, int n)
54{
55 if (atomic_load_explicit(&pro->progress, memory_order_relaxed) >= n)
56 return;
57
58 ff_mutex_lock(&pro->progress_mutex);
59 atomic_store_explicit(&pro->progress, n, memory_order_release);
60 ff_cond_broadcast(&pro->progress_cond);
61 ff_mutex_unlock(&pro->progress_mutex);
62}
63
64void ff_thread_progress_await(const ThreadProgress *pro_c, int n)
65{

Callers 8

decode_sliceFunction · 0.85
alloc_dummy_frameFunction · 0.85
ff_mpv_frame_endFunction · 0.85
report_decode_progressFunction · 0.85
rv34_decode_sliceFunction · 0.85
ff_progress_frame_reportFunction · 0.85
wavpack_decode_frameFunction · 0.85
hls_decode_entry_wppFunction · 0.85

Calls 3

ff_mutex_lockFunction · 0.85
ff_cond_broadcastFunction · 0.85
ff_mutex_unlockFunction · 0.85

Tested by

no test coverage detected