Browse Source

More debug messages

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1356 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.62
sletz 18 years ago
parent
commit
ee50d19e00
3 changed files with 7 additions and 7 deletions
  1. +3
    -3
      common/JackEngine.cpp
  2. +4
    -3
      common/JackServer.cpp
  3. +0
    -1
      common/JackSocket.cpp

+ 3
- 3
common/JackEngine.cpp View File

@@ -486,7 +486,7 @@ int JackEngine::ClientCloseAux(int refnum, JackClientInterface* client, bool wai
// Wait until next cycle to be sure client is not used anymore
if (wait) {
if (!fSignal->TimedWait(fEngineControl->fTimeOutUsecs * 2)) { // Must wait at least until a switch occurs in Process, even in case of graph end failure
JackLog("JackEngine::ClientCloseAux wait error ref = %ld \n", refnum);
jack_error("JackEngine::ClientCloseAux wait error ref = %ld", refnum);
}
}

@@ -507,7 +507,7 @@ int JackEngine::ClientActivate(int refnum)
JackLog("JackEngine::ClientActivate ref = %ld name = %s\n", refnum, client->GetClientControl()->fName);
// Wait for graph state change to be effective
if (!fSignal->TimedWait(fEngineControl->fPeriodUsecs * 10)) {
JackLog("JackEngine::ClientActivate wait error ref = %ld name = %s\n", refnum, client->GetClientControl()->fName);
jack_error("JackEngine::ClientActivate wait error ref = %ld name = %s", refnum, client->GetClientControl()->fName);
return -1;
} else {
NotifyActivate(refnum);
@@ -526,7 +526,7 @@ int JackEngine::ClientDeactivate(int refnum)
fGraphManager->DisconnectAllPorts(refnum);
// Wait for graph state change to be effective
if (!fSignal->TimedWait(fEngineControl->fPeriodUsecs * 10)) {
JackLog("JackEngine::ClientDeactivate wait error ref = %ld name = %s\n", refnum, client->GetClientControl()->fName);
jack_error("JackEngine::ClientDeactivate wait error ref = %ld name = %s", refnum, client->GetClientControl()->fName);
return -1;
} else {
return 0;


+ 4
- 3
common/JackServer.cpp View File

@@ -305,9 +305,10 @@ void JackServer::Notify(int refnum, int notify, int value)

case JackNotifyChannelInterface::kDeadClient:
JackLog("JackServer: kDeadClient ref = %ld\n", refnum);
Deactivate(refnum);
fEngine->ClientClose(refnum);
break;
if (Deactivate(refnum) < 0)
jack_error("JackServer: DeadClient ref = %ld cannot be removed from the graph !!\n", refnum);
fEngine->ClientClose(refnum);
break;
}
}



+ 0
- 1
common/JackSocket.cpp View File

@@ -123,7 +123,6 @@ int JackClientSocket::Close()
int JackClientSocket::Read(void* data, int len)
{
int len1;
JackLog("JackClientSocket::Read len = %ld\n", len);

if ((len1 = read(fSocket, data, len)) != len) {
jack_error("Cannot read socket %d %d (%s)", len, len1, strerror(errno));


Loading…
Cancel
Save