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
12543dd7
Commit
12543dd7
authored
Mar 12, 2017
by
Adrian Knoth
Committed by
GitHub
Mar 12, 2017
Browse files
Merge pull request #255 from jamespthomas/james/fix-wait-crash
Fix crash in JackPosixSemaphore::Wait
parents
e0281d82
05f87555
Changes
1
Show whitespace changes
Inline
Side-by-side
posix/JackPosixSemaphore.cpp
View file @
12543dd7
...
...
@@ -81,7 +81,6 @@ bool JackPosixSemaphore::SignalAll()
return
(
res
==
0
);
}
/*
bool
JackPosixSemaphore
::
Wait
()
{
int
res
;
...
...
@@ -91,17 +90,6 @@ bool JackPosixSemaphore::Wait()
return
false
;
}
if ((res = sem_wait(fSemaphore)) != 0) {
jack_error("JackPosixSemaphore::Wait name = %s err = %s", fName, strerror(errno));
}
return (res == 0);
}
*/
bool
JackPosixSemaphore
::
Wait
()
{
int
res
;
while
((
res
=
sem_wait
(
fSemaphore
)
<
0
))
{
jack_error
(
"JackPosixSemaphore::Wait name = %s err = %s"
,
fName
,
strerror
(
errno
));
if
(
errno
!=
EINTR
)
{
...
...
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