Changeset 1682

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

Apply the atomic-patch also to the 2.0 branch.

Fixes #197.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/libutil/Atomic.h

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