FFmpeg
Data Fields
RefCount Struct Reference

Data Fields

atomic_uintptr_t refcount
 An uintptr_t is big enough to hold the address of every reference, so no overflow can happen when incrementing the refcount as long as the user does not throw away references. More...
 
FFRefStructOpaque opaque
 
void(* free_cb )(FFRefStructOpaque opaque, void *obj)
 
void(* free )(void *ref)
 

Detailed Description

Definition at line 54 of file refstruct.c.

Field Documentation

◆ refcount

atomic_uintptr_t RefCount::refcount

An uintptr_t is big enough to hold the address of every reference, so no overflow can happen when incrementing the refcount as long as the user does not throw away references.

Definition at line 60 of file refstruct.c.

◆ opaque

FFRefStructOpaque RefCount::opaque

Definition at line 61 of file refstruct.c.

◆ free_cb

void(* RefCount::free_cb) (FFRefStructOpaque opaque, void *obj)

Definition at line 62 of file refstruct.c.

◆ free

void(* RefCount::free) (void *ref)

Definition at line 63 of file refstruct.c.

Referenced by ff_refstruct_pool_alloc_ext_c().


The documentation for this struct was generated from the following file: