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

Function ff_thread_progress_init

libavcodec/threadprogress.c:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 (offsetof(ThreadProgress, progress_cond)));
32
33av_cold int ff_thread_progress_init(ThreadProgress *pro, int init_mode)
34{
35 atomic_init(&pro->progress, init_mode ? -1 : INT_MAX);
36#if HAVE_THREADS
37 if (init_mode)
38 return ff_pthread_init(pro, thread_progress_offsets);
39#endif
40 pro->init = init_mode;
41 return 0;
42}
43
44av_cold void ff_thread_progress_destroy(ThreadProgress *pro)
45{

Callers 5

progress_initFunction · 0.85
mpv_pic_initFunction · 0.85
progress_pool_init_cbFunction · 0.85
wpp_progress_initFunction · 0.85

Calls 1

ff_pthread_initFunction · 0.85

Tested by

no test coverage detected