2011-12-14 20:20:40 +01:00
|
|
|
#ifndef _ATOMIC_INT_H
|
|
|
|
#define _ATOMIC_INT_H
|
2011-12-09 17:06:08 +01:00
|
|
|
|
|
|
|
#ifdef QT_CORE_LIB
|
2011-12-14 20:20:40 +01:00
|
|
|
#include <QAtomicInt>
|
|
|
|
namespace mt{
|
|
|
|
typedef QAtomicInt atomicInt;
|
|
|
|
}
|
|
|
|
|
|
|
|
#elif defined(__APPLE__)
|
|
|
|
# include "atomic_int_apple.h"
|
2011-12-09 17:06:08 +01:00
|
|
|
|
|
|
|
|
2011-12-14 20:20:40 +01:00
|
|
|
//generic implementation using mutexes
|
|
|
|
#else
|
|
|
|
# include "atomic_int_generic.h"
|
2011-12-09 17:06:08 +01:00
|
|
|
#endif
|
|
|
|
|
2011-12-14 20:20:40 +01:00
|
|
|
/*
|
|
|
|
#elif defined(_WIN32)
|
|
|
|
# include "atomic_int_win32.h"
|
2011-12-09 17:06:08 +01:00
|
|
|
#endif
|
|
|
|
|
2011-12-14 20:20:40 +01:00
|
|
|
#elif defined(__linux__)
|
|
|
|
# include "atomic_int_linux.h"
|
|
|
|
#endif
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
__linux__
|
|
|
|
__unix__
|
|
|
|
__posix__
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endif // _ATOMIC_INT_H
|
|
|
|
|