| 314 | } |
| 315 | |
| 316 | static 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 | |
| 335 | AVRefStructPool *av_refstruct_pool_alloc(size_t size, unsigned flags) |
| 336 | { |
nothing calls this directly
no test coverage detected