summaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/common/gatecallback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/vespa/searchlib/common/gatecallback.cpp')
-rw-r--r--searchlib/src/vespa/searchlib/common/gatecallback.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/common/gatecallback.cpp b/searchlib/src/vespa/searchlib/common/gatecallback.cpp
new file mode 100644
index 00000000000..a853909be71
--- /dev/null
+++ b/searchlib/src/vespa/searchlib/common/gatecallback.cpp
@@ -0,0 +1,12 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#include "gatecallback.h"
+#include <vespa/vespalib/util/sync.h>
+
+namespace search {
+
+GateCallback::~GateCallback() {
+ _gate.countDown();
+}
+
+}