diff options
author | John Emmas <johne53@tiscali.co.uk> | 2014-12-10 16:53:47 +0000 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2014-12-10 16:56:33 +0000 |
commit | 2f300085ea4d548a2f5c325f0e8c2d401456712e (patch) | |
tree | e6ffd444d3efcd976ed8cab04abf8ac560a3b2c9 /libs/ardour/audio_diskstream.cc | |
parent | 50b7ab651e4afbf298df051e87159668e15f158c (diff) |
Use DEBUG_THREAD_SELF when using DEBUG_TRACE with pthread IDs
(supports both normal pthreads usage and PTW32)
Diffstat (limited to 'libs/ardour/audio_diskstream.cc')
-rw-r--r-- | libs/ardour/audio_diskstream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc index 538faebc4f..4c3f7e6437 100644 --- a/libs/ardour/audio_diskstream.cc +++ b/libs/ardour/audio_diskstream.cc @@ -514,7 +514,7 @@ AudioDiskstream::process (BufferSet& bufs, framepos_t transport_frame, pframes_t if (rec_nframes > total) { 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 (); 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 << "underrun for " << _name << endl; 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 (); return -1; |