History

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

Andreas Rheinhardt committed 1 year ago

Commit e8a8a131 parent f9fe1e01 file · +2 −1Browse files

Unified · Split

libavutil/slicethread.c+2−1
@@ -95,6 +95,7 @@ static void *attribute_align_arg thread_worker(void *v) · 94 unmodified lines
95 }95 }
96}96}
97 97
98av_cold
98int avpriv_slicethread_create(AVSliceThread **pctx, void *priv,99int avpriv_slicethread_create(AVSliceThread **pctx, void *priv,
99 void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads),100 void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads),
100 void (*main_func)(void *priv),101 void (*main_func)(void *priv),
@@ -222,7 +223,7 @@ void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_mai · 121 unmodified lines
222 }223 }
223}224}
224 225
225void avpriv_slicethread_free(AVSliceThread **pctx)226av_cold void avpriv_slicethread_free(AVSliceThread **pctx)
226{227{
227 AVSliceThread *ctx = *pctx;228 AVSliceThread *ctx = *pctx;
228 int nb_workers, i;229 int nb_workers, i;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t