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

Separates the component parts of running an audio stream: task deferral, filtering and generation.

Walking towards improving opportunities for composition.
This commit is contained in:
Thomas Harte
2017-12-17 21:26:06 -05:00
parent eb6b612052
commit ac80d10cd8
37 changed files with 594 additions and 508 deletions
+1
View File
@@ -88,6 +88,7 @@ void DeferringAsyncTaskQueue::defer(std::function<void(void)> function) {
}
void DeferringAsyncTaskQueue::perform() {
if(!deferred_tasks_) return;
std::shared_ptr<std::list<std::function<void(void)>>> deferred_tasks = deferred_tasks_;
deferred_tasks_.reset();
enqueue([deferred_tasks] {