Changeset 1681 for trunk

Show
Ignore:
Timestamp:
10/09/09 12:39:42 (14 years ago)
Author:
arnonym
Message:

Apply the atomic.patch of #197 to trunk.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libutil/Atomic.h

    r1144 r1681  
    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