Commit 47c307b7 authored by sletz's avatar sletz
Browse files

Apply patch for ticket #169.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3994 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 6cc2e66c
......@@ -67,6 +67,15 @@ static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* ad
return ret;
}
#else
#warning using builtin gcc (version > 4.1) atomic
static inline char CAS(volatile uint32_t value, uint32_t newvalue, volatile int32_t* addr)
{
return __sync_bool_compare_and_swap (addr, value, newvalue);
}
#endif
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment