Subversion Repositories HelenOS-historic

Rev

Rev 1104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1104 Rev 1107
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#ifndef __ATOMIC_H__
29
#ifndef __ATOMIC_H__
30
#define __ATOMIC_H__
30
#define __ATOMIC_H__
31
 
31
 
32
struct atomic {
32
typedef struct atomic {
33
    volatile long count;
33
    volatile long count;
34
};
34
} atomic_t;
35
 
35
 
36
#include <arch/atomic.h>
36
#include <arch/atomic.h>
37
#include <typedefs.h>
-
 
38
 
37
 
39
static inline void atomic_set(atomic_t *val, long i)
38
static inline void atomic_set(atomic_t *val, long i)
40
{
39
{
41
        val->count = i;
40
        val->count = i;
42
}
41
}