Back to index

glibc  2.9
Defines | Typedefs
malloc-machine.h File Reference
#include <atomic.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NO_THREADS
#define mutex_init(m)   (*(m) = 0)
#define mutex_lock(m)   ((*(m) = 1), 0)
#define mutex_trylock(m)   (*(m) ? 1 : ((*(m) = 1), 0))
#define mutex_unlock(m)   (*(m) = 0)
#define tsd_key_create(key, destr)   do {} while(0)
#define tsd_setspecific(key, data)   ((key) = (data))
#define tsd_getspecific(key, vptr)   (vptr = (key))
#define thread_atfork(prepare, parent, child)   do {} while(0)
#define atomic_full_barrier()   __asm ("" ::: "memory")
#define atomic_read_barrier()   atomic_full_barrier ()
#define atomic_write_barrier()   atomic_full_barrier ()
#define DEFAULT_TOP_PAD   131072

Typedefs

typedef int mutex_t
typedef void * tsd_key_t

Define Documentation

#define atomic_full_barrier ( )    __asm ("" ::: "memory")

Definition at line 53 of file malloc-machine.h.

Definition at line 57 of file malloc-machine.h.

Definition at line 61 of file malloc-machine.h.

#define DEFAULT_TOP_PAD   131072

Definition at line 65 of file malloc-machine.h.

#define mutex_init (   m)    (*(m) = 0)

Definition at line 38 of file malloc-machine.h.

#define mutex_lock (   m)    ((*(m) = 1), 0)

Definition at line 39 of file malloc-machine.h.

#define mutex_trylock (   m)    (*(m) ? 1 : ((*(m) = 1), 0))

Definition at line 40 of file malloc-machine.h.

#define mutex_unlock (   m)    (*(m) = 0)

Definition at line 41 of file malloc-machine.h.

#define NO_THREADS

Definition at line 28 of file malloc-machine.h.

#define thread_atfork (   prepare,
  parent,
  child 
)    do {} while(0)

Definition at line 48 of file malloc-machine.h.

#define tsd_getspecific (   key,
  vptr 
)    (vptr = (key))

Definition at line 46 of file malloc-machine.h.

#define tsd_key_create (   key,
  destr 
)    do {} while(0)

Definition at line 44 of file malloc-machine.h.

#define tsd_setspecific (   key,
  data 
)    ((key) = (data))

Definition at line 45 of file malloc-machine.h.


Typedef Documentation

typedef int mutex_t

Definition at line 36 of file malloc-machine.h.

typedef void* tsd_key_t

Definition at line 43 of file malloc-machine.h.