From a590de154a6c8b20f4a9f9a1aaec7187fbc2e32c Mon Sep 17 00:00:00 2001 From: Boris-Barboris Date: Mon, 28 Aug 2017 21:58:08 +0000 Subject: [PATCH] fix deadlocks, caused by second m_locks increment --- source/vibe/core/sync.d | 1 - 1 file changed, 1 deletion(-) diff --git a/source/vibe/core/sync.d b/source/vibe/core/sync.d index 49eb242..7e93b61 100644 --- a/source/vibe/core/sync.d +++ b/source/vibe/core/sync.d @@ -216,7 +216,6 @@ final class LocalTaskSemaphore while (true) { m_signal.waitUninterruptible(); if (m_waiters.front.seq == w.seq && tryLock()) { - m_locks++; return; } }