bond/include/kernel/hal/atomic.h

17 lines
368 B
C
Raw Normal View History

2018-03-24 00:58:24 +00:00
#ifndef KERNEL_HAL_ATOMIC_H
#define KERNEL_HAL_ATOMIC_H
2018-01-26 08:43:22 +00:00
2018-01-25 09:53:35 +00:00
#include "type.h"
2017-02-23 02:36:00 +00:00
2018-01-26 08:43:22 +00:00
/**
* Atomic operations
*/
2018-03-24 00:58:24 +00:00
extern int32 SXAPI hal_interlocked_exchange_32(int32 *target, int32 val);
2017-02-23 02:36:00 +00:00
2018-03-24 00:58:24 +00:00
extern int32 SXAPI hal_interlocked_increment_32(int32 *target, int32 increment);
2017-02-23 02:36:00 +00:00
2018-03-24 00:58:24 +00:00
extern int32 SXAPI hal_interlocked_compare_exchange_32(int32 *target, int32 compare, int32 val);
2017-02-23 02:36:00 +00:00
2018-03-24 00:58:24 +00:00
#endif