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:
The Dlang Bot 2017-08-30 00:36:04 +02:00 committed by GitHub
commit c06e24494d

View file

@ -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;
} }
} }