You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
481 B
35 lines
481 B
#ifndef _ATOMIC_INT_H |
|
#define _ATOMIC_INT_H |
|
|
|
#ifdef QT_CORE_LIB |
|
#include <QAtomicInt> |
|
namespace mt{ |
|
typedef QAtomicInt atomicInt; |
|
} |
|
|
|
#elif defined(__APPLE__) |
|
# include "atomic_int_apple.h" |
|
|
|
|
|
//generic implementation using mutexes |
|
#else |
|
# include "atomic_int_generic.h" |
|
#endif |
|
|
|
/* |
|
#elif defined(_WIN32) |
|
# include "atomic_int_win32.h" |
|
#endif |
|
|
|
#elif defined(__linux__) |
|
# include "atomic_int_linux.h" |
|
#endif |
|
*/ |
|
/* |
|
__linux__ |
|
__unix__ |
|
__posix__ |
|
*/ |
|
|
|
#endif // _ATOMIC_INT_H |
|
|
|
|