summaryrefslogtreecommitdiff
path: root/libs/pbd/pool.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-01-08 15:19:32 +0000
committerCarl Hetherington <carl@carlh.net>2011-01-08 15:19:32 +0000
commitbee34078e7426f6662a3c21ca3288808650c0aa1 (patch)
treecd94cb29c0a03bcd4e3b7ac9bfd5d9a191d3b86a /libs/pbd/pool.cc
parentaf0030a6de8bc8109bb3c343289816c91377b76c (diff)
Use DEBUG macros for SessionEvent debugging.
git-svn-id: svn://localhost/ardour2/branches/3.0@8482 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pool.cc')
-rw-r--r--libs/pbd/pool.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/pbd/pool.cc b/libs/pbd/pool.cc
index c58f0d1071..8919f10f9a 100644
--- a/libs/pbd/pool.cc
+++ b/libs/pbd/pool.cc
@@ -26,6 +26,8 @@
#include "pbd/pool.h"
#include "pbd/error.h"
+#include "pbd/debug.h"
+#include "pbd/compose.h"
using namespace std;
using namespace PBD;
@@ -246,9 +248,10 @@ void*
CrossThreadPool::alloc ()
{
void* ptr;
- cerr << pthread_self() << ' ' << name() << " has " << pending.read_space() << " pending free entries waiting\n";
+
+ DEBUG_TRACE (DEBUG::Pool, string_compose ("%1 %2 has %3 pending free entries waiting\n", pthread_self(), name(), pending.read_space()));
while (pending.read (&ptr, 1) == 1) {
- cerr << pthread_self() << ' ' << name() << " pushes back a pending free list entry before allocating\n";
+ DEBUG_TRACE (DEBUG::Pool, string_compose ("%1 %2 pushes back a pending free list entry before allocating\n", pthread_self(), name()));
free_list.write (&ptr, 1);
}
return Pool::alloc ();