Changeset cefb126 in mainline for kernel/generic/include/atomic.h
- Timestamp:
- 2010-07-02T14:19:30Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 89c57b6
- Parents:
- fe7abd0 (diff), e3ee9b9 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/atomic.h
rfe7abd0 rcefb126 38 38 #include <typedefs.h> 39 39 #include <arch/atomic.h> 40 #include <verify.h> 40 41 41 static inline void atomic_set(atomic_t *val, atomic_count_t i) 42 ATOMIC static inline void atomic_set(atomic_t *val, atomic_count_t i) 43 WRITES(&val->count) 44 REQUIRES_EXTENT_MUTABLE(val) 42 45 { 43 46 val->count = i; 44 47 } 45 48 46 static inline atomic_count_t atomic_get(atomic_t *val) 49 ATOMIC static inline atomic_count_t atomic_get(atomic_t *val) 50 REQUIRES_EXTENT_MUTABLE(val) 47 51 { 48 52 return val->count;
Note:
See TracChangeset
for help on using the changeset viewer.