1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-01 11:16:16 +00:00

Apply applicable deferred actions before lookahead.

This commit is contained in:
Thomas Harte
2024-02-16 08:56:01 -05:00
parent fadd3bc6fc
commit 35545451fe
5 changed files with 14 additions and 3 deletions

View File

@@ -73,6 +73,11 @@ template <typename TimeUnit> class DeferredQueue {
}
}
/// @returns @c true if no actions are enqueued; @c false otherwise.
bool empty() const {
return pending_actions_.empty();
}
private:
// The list of deferred actions.
struct DeferredAction {