Fix WinAPIEventDriverCore.waiterCount to include pending timers.
This commit is contained in:
parent
afd8b59952
commit
ef065762b3
|
@ -33,7 +33,7 @@ final class WinAPIEventDriverCore : EventDriverCore {
|
||||||
registerEvent(m_fileCompletionEvent);
|
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 addWaiter() { m_waiterCount++; }
|
||||||
package void removeWaiter() { m_waiterCount--; }
|
package void removeWaiter() { m_waiterCount--; }
|
||||||
|
|
Loading…
Reference in a new issue