Fix KCondition variable; add timeout parameter to ILimitableResource

This commit is contained in:
TuxSH
2018-11-05 23:16:35 +01:00
committed by Michael Scire
parent 0a0c05481e
commit e2d8316401
4 changed files with 12 additions and 9 deletions

View File

@@ -64,8 +64,6 @@ bool KResourceLimit::ReserveDetail(KResourceLimit::Category category, size_t cou
};
if (timeoutTime <= KSystemClock::never) {
// TODO, check is actually < 0
// TODO timeout
ok = true;
condvar.wait(condition);
} else {