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