xine-lib: xine-lib-1.2.12/src/xine-utils/xine_mutex.c File Reference

xine-lib 1.2.12

Functions
xine_mutex.c File Reference
`#include <stdio.h>`
`#include <pthread.h>`
`#include <xine/xineutils.h>`

## Functions
int | xine_mutex_init (xine_mutex_t *mutex, const pthread_mutexattr_t *mutexattr, const char *id)
int | xine_mutex_lock (xine_mutex_t *mutex, const char *who)
int | xine_mutex_unlock (xine_mutex_t *mutex, const char *who)
int | xine_mutex_destroy (xine_mutex_t *mutex)

## Function Documentation

## ◆ xine_mutex_destroy()

int xine_mutex_destroy | ( | xine_mutex_t * | mutex | ) |

References xine_mutex_t::mutex.

## ◆ xine_mutex_init()

int xine_mutex_init | ( | xine_mutex_t * | mutex,
|  | const pthread_mutexattr_t * | mutexattr,
|  | const char * | id
| ) |  |

References xine_mutex_t::id, and xine_mutex_t::mutex.

## ◆ xine_mutex_lock()

int xine_mutex_lock | ( | xine_mutex_t * | mutex,
|  | const char * | who
| ) |  |

References xine_mutex_t::id, xine_mutex_t::locked_by, and xine_mutex_t::mutex.

## ◆ xine_mutex_unlock()

int xine_mutex_unlock | ( | xine_mutex_t * | mutex,
|  | const char * | who
| ) |  |

References xine_mutex_t::id, and xine_mutex_t::mutex.