Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
qtractor
non-atomic-arches.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File non-atomic-arches.patch of Package qtractor
Index: src/qtractorAtomic.h =================================================================== --- src/qtractorAtomic.h.orig +++ src/qtractorAtomic.h @@ -33,6 +33,26 @@ extern "C" { #endif +#if defined(HAVE_QATOMIC_H) + +typedef QAtomicInt qtractorAtomic; + +#if QT_VERSION >= 0x050000 +#define ATOMIC_GET(a) ((a)->load()) +#define ATOMIC_SET(a,v) ((a)->store(v)) +#else +#define ATOMIC_GET(a) ((int) *(a)) +#define ATOMIC_SET(a,v) (*(a) = (v)) +#endif + +static inline int ATOMIC_CAS ( qtractorAtomic *pVal, + int iOldValue, int iNewValue ) +{ + return pVal->testAndSetOrdered(iOldValue, iNewValue); +} + +#else + #if defined(__GNUC__) #if defined(__powerpc__) || defined(__powerpc64__) @@ -107,26 +127,6 @@ static inline int ATOMIC_CAS1 ( #endif -#if defined(HAVE_QATOMIC_H) - -typedef QAtomicInt qtractorAtomic; - -#if QT_VERSION >= 0x050000 -#define ATOMIC_GET(a) ((a)->load()) -#define ATOMIC_SET(a,v) ((a)->store(v)) -#else -#define ATOMIC_GET(a) ((int) *(a)) -#define ATOMIC_SET(a,v) (*(a) = (v)) -#endif - -static inline int ATOMIC_CAS ( qtractorAtomic *pVal, - int iOldValue, int iNewValue ) -{ - return pVal->testAndSetOrdered(iOldValue, iNewValue); -} - -#else - typedef struct { volatile int value; } qtractorAtomic; #define ATOMIC_GET(a) ((a)->value)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor