Changeset 1433ecda in mainline for kernel/arch/arm32/src/atomic.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/atomic.c
r47b2d7e3 r1433ecda 44 44 * returns the previous value of \a *ptr. 45 45 */ 46 void * 46 void *__sync_val_compare_and_swap_4(void **ptr, void *expected, void *new_val) 47 47 { 48 48 /* … … 55 55 irq_spinlock_lock(&cas_lock, true); 56 56 57 void * 57 void *cur_val = *ptr; 58 58 59 59 if (cur_val == expected) {
Note:
See TracChangeset
for help on using the changeset viewer.