atomic.h File Reference

#include <pthread.h>

Go to the source code of this file.

Data Structures

struct  mt_atomic_t

Defines

#define ATOMIC_NEED_MUTEX

Functions

static void atomic_set (mt_atomic_t *at, int val)
static int atomic_get (mt_atomic_t *at)
static void atomic_inc (mt_atomic_t *at, pthread_mutex_t *mutex)
static bool atomic_dec (mt_atomic_t *at, pthread_mutex_t *mutex)

Detailed Description

Definition in file atomic.h.


Define Documentation

#define ATOMIC_NEED_MUTEX

Definition at line 107 of file atomic.h.


Function Documentation

static bool atomic_dec ( mt_atomic_t at,
pthread_mutex_t *  mutex 
) [inline, static]

Definition at line 114 of file atomic.h.

References mt_atomic_t::x.

Referenced by zmm::Object::release().

static int atomic_get ( mt_atomic_t at  )  [inline, static]

Definition at line 43 of file atomic.h.

References mt_atomic_t::x.

Referenced by zmm::Object::getRefCount().

static void atomic_inc ( mt_atomic_t at,
pthread_mutex_t *  mutex 
) [inline, static]

Definition at line 108 of file atomic.h.

References mt_atomic_t::x.

Referenced by zmm::Object::retain().

static void atomic_set ( mt_atomic_t at,
int  val 
) [inline, static]

Definition at line 38 of file atomic.h.

References mt_atomic_t::x.

Referenced by zmm::Object::Object().


Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1