13
0

Use DEBUG_THREAD_SELF when using DEBUG_TRACE with pthread IDs

(supports both normal pthreads usage and PTW32)
This commit is contained in:
John Emmas 2014-12-10 16:53:47 +00:00
parent 50b7ab651e
commit 2f300085ea

View File

@ -514,7 +514,7 @@ AudioDiskstream::process (BufferSet& bufs, framepos_t transport_frame, pframes_t
if (rec_nframes > total) { if (rec_nframes > total) {
DEBUG_TRACE (DEBUG::Butler, string_compose ("%1 overrun in %2, rec_nframes = %3 total space = %4\n", DEBUG_TRACE (DEBUG::Butler, string_compose ("%1 overrun in %2, rec_nframes = %3 total space = %4\n",
pthread_self(), name(), rec_nframes, total)); DEBUG_THREAD_SELF, name(), rec_nframes, total));
DiskOverrun (); DiskOverrun ();
return -1; return -1;
} }
@ -622,7 +622,7 @@ AudioDiskstream::process (BufferSet& bufs, framepos_t transport_frame, pframes_t
cerr << _name << " Need " << necessary_samples << " total = " << total << endl; cerr << _name << " Need " << necessary_samples << " total = " << total << endl;
cerr << "underrun for " << _name << endl; cerr << "underrun for " << _name << endl;
DEBUG_TRACE (DEBUG::Butler, string_compose ("%1 underrun in %2, rec_nframes = %3 total space = %4\n", DEBUG_TRACE (DEBUG::Butler, string_compose ("%1 underrun in %2, rec_nframes = %3 total space = %4\n",
pthread_self(), name(), rec_nframes, total)); DEBUG_THREAD_SELF, name(), rec_nframes, total));
DiskUnderrun (); DiskUnderrun ();
return -1; return -1;