diff options
Diffstat (limited to 'libs/ardour/source.cc')
-rw-r--r-- | libs/ardour/source.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc index e9e3b00142..618dddc70b 100644 --- a/libs/ardour/source.cc +++ b/libs/ardour/source.cc @@ -29,7 +29,7 @@ #include <algorithm> #include <fstream> -#include <glibmm/thread.h> +#include <glibmm/threads.h> #include <glibmm/miscutils.h> #include <glibmm/fileutils.h> #include "pbd/xml++.h" @@ -162,7 +162,7 @@ Source::set_state (const XMLNode& node, int version) bool Source::has_been_analysed() const { - Glib::Mutex::Lock lm (_analysis_lock); + Glib::Threads::Mutex::Lock lm (_analysis_lock); return _analysed; } @@ -170,7 +170,7 @@ void Source::set_been_analysed (bool yn) { { - Glib::Mutex::Lock lm (_analysis_lock); + Glib::Threads::Mutex::Lock lm (_analysis_lock); _analysed = yn; } @@ -292,14 +292,14 @@ void Source::dec_use_count () { #ifndef NDEBUG - gint oldval = g_atomic_int_exchange_and_add (&_use_count, -1); + gint oldval = g_atomic_int_add (&_use_count, -1); if (oldval <= 0) { cerr << "Bad use dec for " << name() << endl; abort (); } assert (oldval > 0); #else - g_atomic_int_exchange_and_add (&_use_count, -1); + g_atomic_int_add (&_use_count, -1); #endif } |