diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-07-02 11:51:20 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-07-02 11:51:20 +0000 |
commit | c21e78aac379cc117f5de3eb3066eaa77eac826e (patch) | |
tree | 8e0d3a51952f2d1bf9e03ee9020266e6f309945c /libs/ardour/session_butler.cc | |
parent | 73ae3053ac423d7d82248343a44f9606a4b15b6b (diff) |
more NPAE debugging
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7355 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_butler.cc')
-rw-r--r-- | libs/ardour/session_butler.cc | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/libs/ardour/session_butler.cc b/libs/ardour/session_butler.cc index 9849798fd0..a3a03507a7 100644 --- a/libs/ardour/session_butler.cc +++ b/libs/ardour/session_butler.cc @@ -190,8 +190,11 @@ Session::butler_thread_work () break; } + cerr << "Butler awake\n"; + if (pfd[0].revents & ~POLLIN) { error << string_compose (_("Error on butler thread request pipe: fd=%1 err=%2"), pfd[0].fd, pfd[0].revents) << endmsg; + cerr << string_compose (_("Error on butler thread request pipe: fd=%1 err=%2"), pfd[0].fd, pfd[0].revents) << endl; break; } @@ -208,17 +211,21 @@ Session::butler_thread_work () switch ((ButlerRequest::Type) req) { case ButlerRequest::Wake: + cerr << "\tWAKE request\n"; break; case ButlerRequest::Run: + cerr << "\tRUN request\n"; butler_should_run = true; break; case ButlerRequest::Pause: + cerr << "\tPAUSE request\n"; butler_should_run = false; break; case ButlerRequest::Quit: + cerr << "\tQUIT request\n"; pthread_exit_pbd (0); /*NOTREACHED*/ break; @@ -239,8 +246,12 @@ Session::butler_thread_work () } if (transport_work_requested()) { + cerr << "Do transport work\n"; butler_transport_work (); - } + cerr << "\tdone with that\n"; + } else { + cerr << "no transport work to do\n"; + } disk_work_outstanding = false; bytes = 0; @@ -291,15 +302,16 @@ Session::butler_thread_work () } if (!err && transport_work_requested()) { + cerr << "transport worked is now requested, going back to the start\n"; continue; } if (compute_io) { end = get_microseconds(); if(end-begin > 0) { - _read_data_rate = (float) bytes / (float) (end - begin); + _read_data_rate = (float) bytes / (float) (end - begin); } else { _read_data_rate = 0; // infinity better - } + } } bytes = 0; @@ -345,6 +357,7 @@ Session::butler_thread_work () } if (!err && transport_work_requested()) { + cerr << "transport worked is now requested, going back to the start 2\n"; continue; } @@ -376,6 +389,8 @@ Session::butler_thread_work () butler_paused.signal(); } + + cerr << "Butler loop done\n"; } pthread_exit_pbd (0); |