aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/closuretask.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/util/closuretask.cpp b/vespalib/src/vespa/vespalib/util/closuretask.cpp
new file mode 100644
index 00000000000..bd1d5cebeed
--- /dev/null
+++ b/vespalib/src/vespa/vespalib/util/closuretask.cpp
@@ -0,0 +1,13 @@
+// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#include "closuretask.h"
+
+namespace vespalib {
+
+ClosureTask::~ClosureTask() {}
+
+Executor::Task::UP makeTask(std::unique_ptr<Closure> closure) {
+ return Executor::Task::UP(new ClosureTask(std::move(closure)));
+}
+
+}