Changeset 8565a42 in mainline for uspace/lib/c/arch/abs32le/include/libarch/atomic.h
- Timestamp:
- 2018-03-02T20:34:50Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1a81f69, d5e5fd1
- Parents:
- 3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
- git-committer:
- GitHub <noreply@…> (2018-03-02 20:34:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/abs32le/include/libarch/atomic.h
r3061bc1 r8565a42 49 49 return true; 50 50 } 51 51 52 52 return false; 53 53 } … … 57 57 /* On real hardware the increment has to be done 58 58 as an atomic action. */ 59 59 60 60 val->count++; 61 61 } … … 65 65 /* On real hardware the decrement has to be done 66 66 as an atomic action. */ 67 67 68 68 val->count++; 69 69 } … … 74 74 value and the increment have to be done as a single 75 75 atomic action. */ 76 76 77 77 atomic_count_t prev = val->count; 78 78 79 79 val->count++; 80 80 return prev; … … 86 86 value and the decrement have to be done as a single 87 87 atomic action. */ 88 88 89 89 atomic_count_t prev = val->count; 90 90 91 91 val->count--; 92 92 return prev;
Note:
See TracChangeset
for help on using the changeset viewer.