Ticket #197: atomic.patch

File atomic.patch, 490 bytes (added by adi, 3 years ago)

Remaining patch for libutil, now that the build system has been fixed.

  • libffado/src/libutil/Atomic.h

    old new  
    158158    return ret; 
    159159} 
    160160 
     161#else 
     162#warning using builtin gcc (version >4.1) atomic 
     163 
     164static 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 
    161169#endif 
    162170 
    163171#endif