src/server/ucx/atomic.c

Sat, 15 Dec 2012 16:05:03 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 15 Dec 2012 16:05:03 +0100
changeset 37
360b9aabe17e
parent 36
450d2d5f4735
permissions
-rw-r--r--

added support for asynchronous safs

/*
 * 
 */

#include <atomic.h>

#include "atomic.h"

void ucx_atomic_inc_8(volatile uint8_t *t) {
    atomic_inc_8(t);
}

void ucx_atomic_inc_16(volatile uint16_t *t) {
    atomic_inc_16(t);
}

void ucx_atomic_inc_32(volatile uint32_t *t) {
    atomic_inc_32(t);
}

void ucx_atomic_inc_64(volatile uint64_t *t) {
    atomic_inc_64(t);
}

void ucx_atomic_dec_8(volatile uint8_t *t) {
    atomic_dec_8(t);
}

void ucx_atomic_dec_16(volatile uint16_t *t) {
    atomic_dec_16(t);
}

void ucx_atomic_dec_32(volatile uint32_t *t) {
    atomic_dec_32(t);
}

void ucx_atomic_dec_64(volatile uint64_t *t) {
    atomic_dec_64(t);
}

uint8_t ucx_atomic_dec_8_nv(volatile uint8_t *t) {
    return atomic_dec_8_nv(t);
}

uint16_t ucx_atomic_dec_16_nv(volatile uint16_t *t) {
    return atomic_dec_16_nv(t);
}

uint32_t ucx_atomic_dec_32_nv(volatile uint32_t *t) {
    return atomic_dec_32_nv(t);
}

uint64_t ucx_atomic_dec_64_nv(volatile uint64_t *t) {
    return atomic_dec_64_nv(t);
}

mercurial