Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/atomic.h

    re15e0e8 r00acd66  
    11/*
    2  * Copyright (c) 2009 Jakub Jermar
     2 * Copyright (c) 2006 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    3636#define LIBC_ATOMIC_H_
    3737
     38typedef struct atomic {
     39        volatile long count;
     40} atomic_t;
     41
    3842#include <libarch/atomic.h>
     43
     44static inline void atomic_set(atomic_t *val, long i)
     45{
     46        val->count = i;
     47}
     48
     49static inline long atomic_get(atomic_t *val)
     50{
     51        return val->count;
     52}
    3953
    4054#endif
Note: See TracChangeset for help on using the changeset viewer.