Changeset 371bd7d in mainline for kernel/generic/include/atomic.h
- Timestamp:
- 2010-03-27T09:22:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a75a2
- Parents:
- cd82bb1 (diff), eaf22d4 (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
-
kernel/generic/include/atomic.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/atomic.h
rcd82bb1 r371bd7d 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_ATOMIC_H_ 37 37 38 typedef struct atomic { 39 volatile long count; 40 } atomic_t; 41 38 #include <typedefs.h> 42 39 #include <arch/atomic.h> 43 40 44 static inline void atomic_set(atomic_t *val, longi)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 static inline longatomic_get(atomic_t *val)46 static inline atomic_count_t atomic_get(atomic_t *val) 50 47 { 51 48 return val->count;
Note:
See TracChangeset
for help on using the changeset viewer.
