bond/include/kernel/hal/atomic.h
2018-01-31 14:10:24 -05:00

16 lines
388 B
C

#ifndef _KERNEL_HAL_ATOMIC_H_
#define _KERNEL_HAL_ATOMIC_H_
#include "type.h"
/**
* Atomic operations
*/
extern int32_t KABI hal_interlocked_exchange_32(int32_t *target, int32_t val);
extern int32_t KABI hal_interlocked_increment_32(int32_t *target, int32_t increment);
extern int32_t KABI hal_interlocked_compare_exchange_32(int32_t *target, int32_t compare, int32_t val);
#endif