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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user