//kernel/trunk/generic/include/atomic.h |
---|
29,12 → 29,11 |
#ifndef __ATOMIC_H__ |
#define __ATOMIC_H__ |
struct atomic { |
typedef struct atomic { |
volatile long count; |
}; |
} atomic_t; |
#include <arch/atomic.h> |
#include <typedefs.h> |
static inline void atomic_set(atomic_t *val, long i) |
{ |
//kernel/trunk/generic/include/typedefs.h |
---|
61,6 → 61,7 |
typedef enum rwlock_type rwlock_type_t; |
typedef struct condvar condvar_t; |
typedef struct waitq waitq_t; |
typedef struct futex futex_t; |
typedef struct chunk chunk_t; |
92,6 → 93,4 |
typedef struct btree_node btree_node_t; |
typedef struct btree btree_t; |
typedef struct atomic atomic_t; |
#endif |