ROFL-pipeline  v0.6.0dev
Functions
atomic_operations.h File Reference

Defines the atomic operations API, mostly atomic increments and addition operations. More...

#include <inttypes.h>
#include "rofl.h"
#include "lock.h"

Go to the source code of this file.

Functions

ROFL_BEGIN_DECLS void platform_atomic_inc64 (uint64_t *counter, platform_mutex_t *mutex)
 Performs an atomic increment to the counter (64 bit type). More...
 
void platform_atomic_inc32 (uint32_t *counter, platform_mutex_t *mutex)
 Performs an atomic increment to the counter (32 bit type). More...
 
void platform_atomic_dec32 (uint32_t *counter, platform_mutex_t *mutex)
 Performs an atomic decrement of the counter (32 bit type). More...
 
void platform_atomic_add64 (uint64_t *counter, uint64_t value, platform_mutex_t *mutex)
 Performs an atomic addition to the counter (64 bit type). More...
 
void platform_atomic_add32 (uint32_t *counter, uint32_t value, platform_mutex_t *mutex)
 Performs an atomic addition to the counter (32 bit type). More...
 

Detailed Description

Defines the atomic operations API, mostly atomic increments and addition operations.

Author
Victor Alvarez<victor.alvarez (at) bisdn.de>

The atomic operations API is the set of calls used by library to perform atomic increments

The user MUST provide an implementation for his/her particular platform.

Definition in file atomic_operations.h.