Changeset 81983e3 in mainline for uspace/lib/libc/arch/abs32le/include/atomic.h
- Timestamp:
- 2010-02-17T14:11:07Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b8da2a3
- Parents:
- 101d9f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/abs32le/include/atomic.h
r101d9f4 r81983e3 36 36 #define LIBC_abs32le_ATOMIC_H_ 37 37 38 #include <bool.h> 39 38 40 #define LIBC_ARCH_ATOMIC_H_ 41 #define CAS 39 42 40 43 #include <atomicdflt.h> 44 45 static inline bool cas(atomic_t *val, long ov, long nv) 46 { 47 if (val->count == ov) { 48 val->count = nv; 49 return true; 50 } 51 52 return false; 53 } 41 54 42 55 static inline void atomic_inc(atomic_t *val) {
Note:
See TracChangeset
for help on using the changeset viewer.