projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
provide some Keyboard:: methods to get access to other versions of modifier names
[ardour.git]
/
libs
/
pbd
/
pbd
/
atomic_counter.h
diff --git
a/libs/pbd/pbd/atomic_counter.h
b/libs/pbd/pbd/atomic_counter.h
index 1e1998e1f121b9a95c83361f596fda54fdb7b9ab..4b8c2e857a4df97eebd98f04cd00ad0ce02dea0b 100644
(file)
--- a/
libs/pbd/pbd/atomic_counter.h
+++ b/
libs/pbd/pbd/atomic_counter.h
@@
-41,7
+41,7
@@
public:
gint get() const
{
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)
}
void set (gint new_value)
@@
-63,7
+63,7
@@
public:
{
return g_atomic_int_dec_and_test (&m_value);
}
{
return g_atomic_int_dec_and_test (&m_value);
}
-
+
bool operator-- ()
{
return decrement_and_test ();
bool operator-- ()
{
return decrement_and_test ();
@@
-90,7
+90,7
@@
public:
private:
// Has to be mutable when using the apple version of gcc.
private:
// Has to be mutable when using the apple version of gcc.
-
mutable volatile gint
m_value;
+
gint
m_value;
};
};