1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 02:22:39 +00:00

Ensure atomic access to actions_.

This commit is contained in:
Thomas Harte
2026-02-18 12:53:31 -05:00
parent 3de16e28c9
commit 92b49afada
+1
View File
@@ -105,6 +105,7 @@ public:
/// Causes any enqueued actions that are not yet scheduled to be scheduled.
void perform() {
const std::lock_guard guard(condition_mutex_);
static_assert(!perform_automatically);
if(actions_.empty()) {
return;