summaryrefslogtreecommitdiff
path: root/libs/ardour/source.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-07-25 17:48:55 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-07-25 17:48:55 +0000
commit3cd8138a419cb165f56070ace0b21a1e63ec5a43 (patch)
tree51efe9abff24a1367be227aebf8e2901433b0b88 /libs/ardour/source.cc
parenteb6e352dd0a307badf68ae4a216d15c03b4685de (diff)
convert from Glib:: to Glib::Threads for all thread-related API
git-svn-id: svn://localhost/ardour2/branches/3.0@13084 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/source.cc')
-rw-r--r--libs/ardour/source.cc10
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
}