* 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. */
| 307 | * in case we would ever introduce weak references. |
| 308 | */ |
| 309 | static 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 | |
| 316 | static void refstruct_pool_uninit(AVRefStructOpaque unused, void *obj) |
| 317 | { |
nothing calls this directly
no test coverage detected