Fix KCondition variable; add timeout parameter to ILimitableResource
This commit is contained in:
1 parent
0a0c05481e
commit
e2d8316401
4 files changed
+12
-9
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user