Changes in kernel/generic/include/atomic.h [228666c:df4ed85] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/atomic.h
r228666c rdf4ed85 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_ATOMIC_H_ 37 37 38 #include <arch/types.h>39 40 38 typedef struct atomic { 41 volatile atomic_count_tcount;39 volatile long count; 42 40 } atomic_t; 43 41 44 42 #include <arch/atomic.h> 45 43 46 static inline void atomic_set(atomic_t *val, atomic_count_ti)44 static inline void atomic_set(atomic_t *val, long i) 47 45 { 48 46 val->count = i; 49 47 } 50 48 51 static inline atomic_count_tatomic_get(atomic_t *val)49 static inline long atomic_get(atomic_t *val) 52 50 { 53 51 return val->count;
Note:
See TracChangeset
for help on using the changeset viewer.