summaryrefslogtreecommitdiff
path: root/libs/ardour/buffer_manager.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-07-11 23:55:00 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-07-11 23:55:00 +0000
commit163d4b85d1ea727202c9714217fd92dcd4cc81bf (patch)
tree9a6b83a43b82bbb9d7dac07feffbdf06329e68a5 /libs/ardour/buffer_manager.cc
parentde835047d923e180a928f375c64ab1be306dc73b (diff)
reinstate thread buffer debug output
git-svn-id: svn://localhost/ardour2/branches/3.0@13035 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/buffer_manager.cc')
-rw-r--r--libs/ardour/buffer_manager.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/buffer_manager.cc b/libs/ardour/buffer_manager.cc
index e66c4a8dee..e3bc2cb97c 100644
--- a/libs/ardour/buffer_manager.cc
+++ b/libs/ardour/buffer_manager.cc
@@ -31,6 +31,9 @@ RingBufferNPT<ThreadBuffers*>* BufferManager::thread_buffers = 0;
std::list<ThreadBuffers*>* BufferManager::thread_buffers_list = 0;
Glib::StaticMutex BufferManager::rb_mutex = GLIBMM_STATIC_MUTEX_INIT;
+using std::cerr;
+using std::endl;
+
void
BufferManager::init (uint32_t size)
{
@@ -45,6 +48,7 @@ BufferManager::init (uint32_t size)
thread_buffers->write (&ts, 1);
thread_buffers_list->push_back (ts);
}
+ cerr << "Initialized thread buffers, readable count now " << thread_buffers->read_space() << endl;
}
@@ -55,6 +59,7 @@ BufferManager::get_thread_buffers ()
ThreadBuffers* tbp;
if (thread_buffers->read (&tbp, 1) == 1) {
+ cerr << "Got thread buffers, readable count now " << thread_buffers->read_space() << endl;
return tbp;
}
@@ -66,6 +71,7 @@ BufferManager::put_thread_buffers (ThreadBuffers* tbp)
{
Glib::Mutex::Lock em (rb_mutex);
thread_buffers->write (&tbp, 1);
+ cerr << "Put back thread buffers, readable count now " << thread_buffers->read_space() << endl;
}
void