FenceManager: Implement should wait.

This commit is contained in:
Fernando Sahmkow 2020-02-17 22:15:43 -04:00
parent 1f345ebe3a
commit 57fdbd9b89
2 changed files with 17 additions and 2 deletions

View file

@ -322,6 +322,17 @@ public:
uncommited_flushes.reset();
}
bool ShouldWaitAsyncFlushes() {
if (commited_flushes.empty()) {
return false;
}
auto& flush_list = commited_flushes.front();
if (!flush_list) {
return false;
}
return true;
}
void PopAsyncFlushes() {
if (commited_flushes.empty()) {
return;