Back to index

glibc  2.9
Defines | Functions
atomicity.h File Reference
#include <inttypes.h>

Go to the source code of this file.

Defines

#define __acquire_lock(lock)
#define __release_lock(lock)   lock = 0

Functions

static int __attribute__ ((unused)) exchange_and_add(volatile uint32_t *mem

Define Documentation

#define __acquire_lock (   lock)
Value:
__asm__ __volatile__("1:    bset   %1, (%0)\n\t"        \
                     "      beq    1b"                  \
                     : : "a" (&(lock)), "d" (1)         \
                     : "memory")

Definition at line 27 of file atomicity.h.

#define __release_lock (   lock)    lock = 0

Definition at line 33 of file atomicity.h.


Function Documentation

static int __attribute__ ( (unused)  ) volatile [static]