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
c44b7123
Commit
c44b7123
authored
Apr 06, 2013
by
Stephane Letz
Browse files
Fix JackMachThread::Kill.
parent
78d79d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
macosx/JackMachThread.cpp
View file @
c44b7123
...
...
@@ -160,12 +160,11 @@ int JackMachThread::GetParams(jack_native_thread_t thread, UInt64* period, UInt6
int
JackMachThread
::
Kill
()
{
// pthread_cancel still not yet implemented in Darwin (TO CHECK ON TIGER)
jack_log
(
"JackMachThread::Kill"
);
if
(
fThread
!=
(
jack_native_thread_t
)
NULL
)
{
// If thread has been started
jack_log
(
"JackMachThread::Kill"
);
mach_port_t
machThread
=
pthread_mach_thread_np
(
fThread
);
int
res
=
(
thread_terminate
(
machThread
)
==
KERN_SUCCESS
)
?
0
:
-
1
;
fStatus
=
kIdle
;
fThread
=
(
jack_native_thread_t
)
NULL
;
return
res
;
}
else
{
...
...
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