Browse Source

Start client RT thread only if a thread routine or callback has been setup with jack_set_process_callback or jack_set_process_thread.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1949 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
sletz 17 years ago
parent
commit
f649c84390
2 changed files with 6 additions and 3 deletions
  1. +1
    -0
      ChangeLog
  2. +5
    -3
      common/JackClient.cpp

+ 1
- 0
ChangeLog View File

@@ -26,6 +26,7 @@ Nedko Arnaudov
* Correct jack_internal_client_load for wrapper layer.
* In thread model, execute a dummy cycle to be sure thread has the correct properties (ensure thread creation is finished).
* Correct jack_port_get_connections function (should return NULL when no connections).
* Start client RT thread only if a thread routine or callback has been setup with jack_set_process_callback or jack_set_process_thread.

2008-03-10 Stephane Letz <letz@grame.fr>


+ 5
- 3
common/JackClient.cpp View File

@@ -250,8 +250,9 @@ int JackClient::Activate()
#endif
*/

if (StartThread() < 0)
return -1;
if (fProcess || fThreadFun)
if (StartThread() < 0)
return -1;

int result = -1;
fChannel->ClientActivate(GetClientControl()->fRefNum, &result);
@@ -292,7 +293,8 @@ int JackClient::Deactivate()
fThread->Kill();
#endif
*/
fThread->Kill();
if (fProcess || fThreadFun)
fThread->Kill();
return result;
}



Loading…
Cancel
Save