Remove out-of-date comment.
[ardour.git] / libs / pbd / pool.cc
index bbe57b7ee291f423f53aef1fc83002eed9af0c56..8919f10f9a64114bfcb36c8c1cef17616492e1bd 100644 (file)
@@ -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,8 +248,10 @@ void*
 CrossThreadPool::alloc () 
 {
        void* ptr;
+
+       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 << 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 ();