summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/source.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-06-26 13:45:59 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-06-26 13:45:59 +0000
commit37978aa21437b9bb308efeb9828fbe4a06077cee (patch)
treef7b3b681e0e42c233ded6715ea824114d9e5c3ec /libs/ardour/ardour/source.h
parentecb0cd5d119d28092a8f48e4521ac5eba197bb54 (diff)
lots of details relating to MIDI file management; try to ignore ALSA sequencer MIDI ports named "Midi-Through"
git-svn-id: svn://localhost/ardour2/branches/3.0@7305 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/source.h')
-rw-r--r--libs/ardour/ardour/source.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h
index 9abf7ff8f0..6f750e6fd0 100644
--- a/libs/ardour/ardour/source.h
+++ b/libs/ardour/ardour/source.h
@@ -106,15 +106,7 @@ class Source : public SessionObject
Flag flags() const { return _flags; }
void inc_use_count () { g_atomic_int_inc (&_use_count); }
- void dec_use_count () {
-#ifndef NDEBUG
- gint oldval = g_atomic_int_exchange_and_add (&_use_count, -1);
- assert (oldval > 0);
-#else
- g_atomic_int_exchange_and_add (&_use_count, -1);
-#endif
- }
-
+ void dec_use_count ();
int use_count() const { return g_atomic_int_get (&_use_count); }
bool used() const { return use_count() > 0; }