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
9595 }
9696 }
9797
98+av_cold
9899 int avpriv_slicethread_create(AVSliceThread **pctx, void *priv,
99100 void (*worker_func)(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads),
100101 void (*main_func)(void *priv),
@@ -222,7 +223,7 @@ void avpriv_slicethread_execute(AVSliceThread *ctx, int nb_jobs, int execute_mai · 121 unmodified lines
222223 }
223224 }
224225
225−void avpriv_slicethread_free(AVSliceThread **pctx)
226+av_cold void avpriv_slicethread_free(AVSliceThread **pctx)
226227 {
227228 AVSliceThread *ctx = *pctx;
228229 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