Fix WinAPIEventDriverCore.waiterCount to include pending timers.

This commit is contained in:
Sönke Ludwig 2017-06-26 23:28:15 +02:00
parent afd8b59952
commit ef065762b3

View file

@ -33,7 +33,7 @@ final class WinAPIEventDriverCore : EventDriverCore {
registerEvent(m_fileCompletionEvent);
}
override size_t waiterCount() { return m_waiterCount; }
override size_t waiterCount() { return m_waiterCount + m_timers.pendingCount; }
package void addWaiter() { m_waiterCount++; }
package void removeWaiter() { m_waiterCount--; }