Changeset d359e227 in mainline
- Timestamp:
- 2009-12-01T20:19:00Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41df2827
- Parents:
- d9ece1cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/atomic.h
rd9ece1cb rd359e227 36 36 #define LIBC_ATOMIC_H_ 37 37 38 #include <bool.h> 39 38 40 typedef struct atomic { 39 41 volatile long count; … … 52 54 } 53 55 56 static inline bool cas(atomic_t *val, long ov, long nv) 57 { 58 return __sync_bool_compare_and_swap(&val->count, ov, nv); 59 } 60 54 61 #endif 55 62
Note:
See TracChangeset
for help on using the changeset viewer.