gint get() const
{
- return g_atomic_int_get (&m_value);
+ return g_atomic_int_get (const_cast<gint*>(&m_value));
}
void set (gint new_value)
{
return g_atomic_int_dec_and_test (&m_value);
}
-
+
bool operator-- ()
{
return decrement_and_test ();
private:
// Has to be mutable when using the apple version of gcc.
- mutable volatile gint m_value;
+ gint m_value;
};