Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TPF
jack2
Commits
78d79d96
Commit
78d79d96
authored
Apr 06, 2013
by
Stephane Letz
Browse files
Correct FW and thread RT Drop/Acquire.
parent
2023aae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/JackClient.cpp
View file @
78d79d96
...
...
@@ -232,7 +232,10 @@ int JackClient::ClientNotify(int refnum, const char* name, int notify, int sync,
case
kStartFreewheelCallback
:
jack_log
(
"JackClient::kStartFreewheel"
);
SetupDriverSync
(
true
);
fThread
.
DropRealTime
();
// Always done (JACK server in RT mode or not...)
// Drop RT only when the RT thread is actually running
if
(
fThread
.
GetStatus
()
==
JackThread
::
kRunning
)
{
fThread
.
DropRealTime
();
}
if
(
fFreewheel
)
{
fFreewheel
(
1
,
fFreewheelArg
);
}
...
...
@@ -244,8 +247,9 @@ int JackClient::ClientNotify(int refnum, const char* name, int notify, int sync,
if
(
fFreewheel
)
{
fFreewheel
(
0
,
fFreewheelArg
);
}
if
(
GetEngineControl
()
->
fRealTime
)
{
if
(
fThread
.
AcquireRealTime
()
<
0
)
{
// Acquire RT only when the RT thread is actually running
if
(
GetEngineControl
()
->
fRealTime
&&
fThread
.
GetStatus
()
==
JackThread
::
kRunning
)
{
if
(
fThread
.
AcquireRealTime
(
GetEngineControl
()
->
fClientPriority
)
<
0
)
{
jack_error
(
"JackClient::AcquireRealTime error"
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment