Changeset a35b458 in mainline for uspace/lib/c/arch/abs32le/include/libarch/atomic.h
- Timestamp:
- 2018-03-02T20:10:49Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/abs32le/include/libarch/atomic.h
r3061bc1 ra35b458 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.