QGenericAtomicOps: allow pointer-sized non-atomic atomics
Change-Id: Id2983978ad544ff79911fffd1671f696b8a9ca35 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>bb10
parent
30ac9d5db4
commit
c2a09242c8
|
|
@ -53,8 +53,10 @@ QT_END_NAMESPACE
|
|||
#pragma qt_sync_stop_processing
|
||||
#endif
|
||||
|
||||
template<int> struct QAtomicOpsSupport { enum { IsSupported = 0 }; };
|
||||
template<> struct QAtomicOpsSupport<4> { enum { IsSupported = 1 }; };
|
||||
template<int Size> struct QAtomicOpsSupport
|
||||
{
|
||||
enum { IsSupported = (Size == sizeof(int) || Size == sizeof(qptrdiff)) };
|
||||
};
|
||||
|
||||
template <typename T> struct QAtomicAdditiveType
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue