xine-lib: xine-lib-1.2.13/src/xine-engine/refcounter.c File Reference

xine-lib 1.2.13-20230125hg15249

Macros | Functions
refcounter.c File Reference
`#include <pthread.h>`
`#include <xine/xine_internal.h>`
`#include <xine/refcounter.h>`

## Macros
#define | LOG_MODULE "refcounter"
#define | LOG_VERBOSE

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

## Macro Definition Documentation

## ◆ LOG_MODULE

#define LOG_MODULE "refcounter"

## ◆ LOG_VERBOSE

#define LOG_VERBOSE

## Function Documentation

## ◆ _x_new_refcounter()

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

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.