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

Function pool_unref

libavutil/refstruct.c:309–314  ·  view source on GitHub ↗

* Hint: The content of pool_unref() and refstruct_pool_uninit() * could currently be merged; they are only separate functions * in case we would ever introduce weak references. */

Source from the content-addressed store, hash-verified

307 * in case we would ever introduce weak references.
308 */
309static void pool_unref(void *ref)
310{
311 AVRefStructPool *pool = get_userdata(ref);
312 if (atomic_fetch_sub_explicit(&pool->refcount, 1, memory_order_acq_rel) == 1)
313 pool_free(pool);
314}
315
316static void refstruct_pool_uninit(AVRefStructOpaque unused, void *obj)
317{

Callers

nothing calls this directly

Calls 2

get_userdataFunction · 0.85
pool_freeFunction · 0.85

Tested by

no test coverage detected