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

Function refstruct_pool_uninit

libavutil/refstruct.c:316–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316static void refstruct_pool_uninit(AVRefStructOpaque unused, void *obj)
317{
318 AVRefStructPool *pool = obj;
319 RefCount *entry;
320
321 ff_mutex_lock(&pool->mutex);
322 ff_assert(!pool->uninited);
323 pool->uninited = 1;
324 entry = pool->available_entries;
325 pool->available_entries = NULL;
326 ff_mutex_unlock(&pool->mutex);
327
328 while (entry) {
329 void *next = entry->opaque.nc;
330 pool_free_entry(pool, entry);
331 entry = next;
332 }
333}
334
335AVRefStructPool *av_refstruct_pool_alloc(size_t size, unsigned flags)
336{

Callers

nothing calls this directly

Calls 3

ff_mutex_lockFunction · 0.85
ff_mutex_unlockFunction · 0.85
pool_free_entryFunction · 0.85

Tested by

no test coverage detected