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

Function thread_set_name

libavcodec/pthread_frame.c:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180static void thread_set_name(PerThreadContext *p)
181{
182 AVCodecContext *avctx = p->avctx;
183 int idx = p - p->parent->threads;
184 char name[16];
185
186 snprintf(name, sizeof(name), "av:%.7s:df%d", avctx->codec->name, idx);
187
188 ff_thread_setname(name);
189}
190
191// get a free frame to decode into
192static AVFrame *decoded_frames_get_free(DecodedFrames *df)

Callers 1

frame_worker_threadFunction · 0.70

Calls 1

ff_thread_setnameFunction · 0.85

Tested by

no test coverage detected