use Posix longs

This commit is contained in:
David Rose 2011-10-31 22:50:28 +00:00
parent 8ebd82fbcc
commit c16875f104

View File

@ -30,7 +30,10 @@
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
class EXPCL_DTOOL AtomicAdjustPosixImpl { class EXPCL_DTOOL AtomicAdjustPosixImpl {
public: public:
typedef int Integer; // In Posix, "long" is generally the native word size (32- or
// 64-bit), which is what we'd prefer.
typedef long Integer;
INLINE static void inc(TVOLATILE Integer &var); INLINE static void inc(TVOLATILE Integer &var);
INLINE static bool dec(TVOLATILE Integer &var); INLINE static bool dec(TVOLATILE Integer &var);
INLINE static void add(TVOLATILE Integer &var, Integer delta); INLINE static void add(TVOLATILE Integer &var, Integer delta);