| 138 | } |
| 139 | |
| 140 | void *av_refstruct_ref(void *obj) |
| 141 | { |
| 142 | RefCount *ref = get_refcount(obj); |
| 143 | |
| 144 | atomic_fetch_add_explicit(&ref->refcount, 1, memory_order_relaxed); |
| 145 | |
| 146 | return obj; |
| 147 | } |
| 148 | |
| 149 | const void *av_refstruct_ref_c(const void *obj) |
| 150 | { |
no test coverage detected