Ticket #197: atomic.patch
| File atomic.patch, 490 bytes (added by adi, 3 years ago) |
|---|
-
libffado/src/libutil/Atomic.h
old new 158 158 return ret; 159 159 } 160 160 161 #else 162 #warning using builtin gcc (version >4.1) atomic 163 164 static inline char CAS(volatile uint32_t value, uint32_t newvalue, volatile int32_t* addr) 165 { 166 return __sync_bool_compare_and_swap (addr, value, newvalue); 167 } 168 161 169 #endif 162 170 163 171 #endif
