1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avutil/slicethread: Mark avpriv_slicethread_{create,free} as av_cold

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-15 05:34:29 +01:00
parent f9fe1e07ad
commit e8a8a13128

View File

@ -95,6 +95,7 @@ static void *attribute_align_arg thread_worker(void *v)
} }
} }
av_cold
int avpriv_slicethread_create(AVSliceThread **pctx, void *priv, int avpriv_slicethread_create(AVSliceThread **pctx, void *priv,
void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads), void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads),
void (*main_func)(void *priv), void (*main_func)(void *priv),
@ -222,7 +223,7 @@ void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_mai
} }
} }
void avpriv_slicethread_free(AVSliceThread **pctx) av_cold void avpriv_slicethread_free(AVSliceThread **pctx)
{ {
AVSliceThread *ctx = *pctx; AVSliceThread *ctx = *pctx;
int nb_workers, i; int nb_workers, i;