aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-05-03 09:23:39 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-05-03 09:23:39 +0200
commit9565597b67fff5cce94e97869247514c04d18c46 (patch)
tree1d564dbf54719925fb0d36cca57fd2431ea4f6d9 /vespalib
parent1b2adfe710e4092cd8d5fe0464b905b13d573837 (diff)
And down in the corner there lay a lonely small forgotten file...
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)));
+}
+
+}