Browse Source

Non blocking notifications in JackEngine::NotifyAddClient and JackEngine::NotifyRemoveClient.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4527 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.8
sletz 14 years ago
parent
commit
3a08661402
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      ChangeLog
  2. +2
    -2
      common/JackEngine.cpp

+ 1
- 0
ChangeLog View File

@@ -38,6 +38,7 @@ Chris Caudle
2011-06-26 Stephane Letz <letz@grame.fr>

* More robust code in synchronization primitives and in JackMessageBuffer.
* Non blocking notifications in JackEngine::NotifyAddClient and JackEngine::NotifyRemoveClient.

2011-07-29 Stephane Letz <letz@grame.fr>



+ 2
- 2
common/JackEngine.cpp View File

@@ -273,7 +273,7 @@ int JackEngine::NotifyAddClient(JackClientInterface* new_client, const char* nam
for (int i = 0; i < CLIENT_NUM; i++) {
JackClientInterface* old_client = fClientTable[i];
if (old_client && old_client != new_client) {
if (old_client->ClientNotify(refnum, name, kAddClient, true, "", 0, 0) < 0) {
if (old_client->ClientNotify(refnum, name, kAddClient, false, "", 0, 0) < 0) {
jack_error("NotifyAddClient old_client fails name = %s", old_client->GetClientControl()->fName);
// Not considered as a failure...
}
@@ -293,7 +293,7 @@ void JackEngine::NotifyRemoveClient(const char* name, int refnum)
for (int i = 0; i < CLIENT_NUM; i++) {
JackClientInterface* client = fClientTable[i];
if (client) {
client->ClientNotify(refnum, name, kRemoveClient, true, "", 0, 0);
client->ClientNotify(refnum, name, kRemoveClient, false, "", 0, 0);
}
}
}


Loading…
Cancel
Save