Changes in kernel/generic/include/atomic.h [7a0359b:d99c1d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/atomic.h
r7a0359b rd99c1d2 38 38 #include <typedefs.h> 39 39 #include <arch/atomic.h> 40 #include <verify.h>41 40 42 NO_TRACE ATOMIC static inline void atomic_set(atomic_t *val, atomic_count_t i) 43 WRITES(&val->count) 44 REQUIRES_EXTENT_MUTABLE(val) 41 static inline void atomic_set(atomic_t *val, atomic_count_t i) 45 42 { 46 43 val->count = i; 47 44 } 48 45 49 NO_TRACE ATOMIC static inline atomic_count_t atomic_get(atomic_t *val) 50 REQUIRES_EXTENT_MUTABLE(val) 46 static inline atomic_count_t atomic_get(atomic_t *val) 51 47 { 52 48 return val->count;
Note:
See TracChangeset
for help on using the changeset viewer.