ROFL-pipeline  v0.6.0dev
Functions
Atomic Operations API

Atomic operations (atomic add, inc...) API definition, that must be implemented by the library users. More...

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

Atomic operations (atomic add, inc...) API definition, that must be implemented by the library users.

Function Documentation

void platform_atomic_add32 ( uint32_t *  counter,
uint32_t  value,
platform_mutex_t *  mutex 
)

Performs an atomic addition to the counter (32 bit type).

The implementation may or may not use the mutex that covers the scope of the counter.

Parameters
mutexmutex instance over the scope of counter.
void platform_atomic_add64 ( uint64_t *  counter,
uint64_t  value,
platform_mutex_t *  mutex 
)

Performs an atomic addition to the counter (64 bit type).

The implementation may or may not use the mutex that covers the scope of the counter.

Parameters
mutexmutex instance over the scope of counter.
void platform_atomic_dec32 ( uint32_t *  counter,
platform_mutex_t *  mutex 
)

Performs an atomic decrement of the counter (32 bit type).

The implementation may or may not use the mutex that covers the scope of the counter.

Parameters
mutexmutex instance over the scope of counter.
void platform_atomic_inc32 ( uint32_t *  counter,
platform_mutex_t *  mutex 
)

Performs an atomic increment to the counter (32 bit type).

The implementation may or may not use the mutex that covers the scope of the counter.

Parameters
mutexmutex instance over the scope of counter.
ROFL_BEGIN_DECLS void platform_atomic_inc64 ( uint64_t *  counter,
platform_mutex_t *  mutex 
)

Performs an atomic increment to the counter (64 bit type).

The implementation may or may not use the mutex that covers the scope of the counter.

Parameters
mutexmutex instance over the scope of counter.