| 31 | (offsetof(ThreadProgress, progress_cond))); |
| 32 | |
| 33 | av_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 | |
| 44 | av_cold void ff_thread_progress_destroy(ThreadProgress *pro) |
| 45 | { |
no test coverage detected