1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 03:29:40 +00:00

Add local hack to ensure good flushing.

This commit is contained in:
Thomas Harte
2025-11-11 14:40:13 -05:00
parent d23dbb96c2
commit 4e86184955
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -97,6 +97,12 @@ public:
}
}
/// @returns The number of items currently enqueued.
size_t size() {
const std::lock_guard guard(condition_mutex_);
return actions_.size();
}
/// Causes any enqueued actions that are not yet scheduled to be scheduled.
void perform() {
static_assert(!perform_automatically);