mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-15 18:37:49 +00:00
FenceManager: Implement should wait.
This commit is contained in:
parent
be8742e286
commit
10dcdb2ed9
2 changed files with 17 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue