Subversion Repositories HelenOS

Rev

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

Rev 1888 Rev 2004
Line 41... Line 41...
41
 
41
 
42
#include <arch/atomic.h>
42
#include <arch/atomic.h>
43
 
43
 
44
static inline void atomic_set(atomic_t *val, long i)
44
static inline void atomic_set(atomic_t *val, long i)
45
{
45
{
46
        val->count = i;
46
    val->count = i;
47
}
47
}
48
 
48
 
49
static inline long atomic_get(atomic_t *val)
49
static inline long atomic_get(atomic_t *val)
50
{
50
{
51
        return val->count;
51
    return val->count;
52
}
52
}
53
 
53
 
54
#endif
54
#endif
55
 
55
 
56
/** @}
56
/** @}