Merge pull request #31 from Boris-Barboris/master
fix deadlocks, caused by second m_locks increment merged-on-behalf-of: Sönke Ludwig <s-ludwig@users.noreply.github.com>
This commit is contained in:
commit
c06e24494d
|
@ -216,7 +216,6 @@ final class LocalTaskSemaphore
|
||||||
while (true) {
|
while (true) {
|
||||||
m_signal.waitUninterruptible();
|
m_signal.waitUninterruptible();
|
||||||
if (m_waiters.front.seq == w.seq && tryLock()) {
|
if (m_waiters.front.seq == w.seq && tryLock()) {
|
||||||
m_locks++;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue