xine-lib: xine-lib-1.2.13/include/xine/refcounter.h File Reference

xine-lib 1.2.13-20230125hg15249

Data Structures | Typedefs | Functions
refcounter.h File Reference
`#include <pthread.h>`
`#include <xine/attributes.h>`

Go to the source code of this file.

## Data Structures
struct | refcounter_t

## Typedefs
typedef void(* | refcounter_destructor) (void *)

## Functions
refcounter_t * | _x_new_refcounter (void *object, refcounter_destructor destructor)
int | _x_refcounter_inc (refcounter_t *refcounter)
int | _x_refcounter_dec (refcounter_t *refcounter)
void | _x_refcounter_dispose (refcounter_t *refcounter)

## Typedef Documentation

## ◆ refcounter_destructor

typedef void(* refcounter_destructor) (void *)

## Function Documentation

## ◆ _x_new_refcounter()

refcounter_t * _x_new_refcounter | ( | void * | object,
|  | refcounter_destructor | destructor )

References refcounter_t::count, refcounter_t::destructor, refcounter_t::lock, lprintf, NULL, and refcounter_t::object.

## ◆ _x_refcounter_dec()

int _x_refcounter_dec | ( | refcounter_t * | refcounter | ) |

References refcounter_t::count, refcounter_t::destructor, refcounter_t::lock, lprintf, and refcounter_t::object.

## ◆ _x_refcounter_dispose()

void _x_refcounter_dispose | ( | refcounter_t * | refcounter | ) |

References refcounter_t::lock.

## ◆ _x_refcounter_inc()

int _x_refcounter_inc | ( | refcounter_t * | refcounter | ) |

References _x_assert, refcounter_t::count, and refcounter_t::lock.