fix to make 'wxAtomicInt i = 0;' work with generic implementation and gcc

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2007-09-10 22:15:16 +00:00
parent 1f25eb3aa9
commit bc1d617aac

View File

@ -113,6 +113,7 @@ class wxAtomicInt32
public:
wxAtomicInt32() { } // non initialized for consistency with basic int type
wxAtomicInt32(wxInt32 v) : m_value(v) { }
wxAtomicInt32(const wxAtomicInt32& a) : m_value(a.m_value) {}
operator wxInt32() const { return m_value; }
operator volatile wxInt32&() { return m_value; }
@ -134,8 +135,6 @@ public:
private:
volatile wxInt32 m_value;
wxCriticalSection m_locker;
DECLARE_NO_COPY_CLASS(wxAtomicInt32)
};
inline void wxAtomicInc(wxAtomicInt32 &value) { value.Inc(); }