aboutsummaryrefslogtreecommitdiffstats
path: root/fnet
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-06-08 09:39:00 +0000
committerArne Juul <arnej@verizonmedia.com>2021-06-08 09:39:00 +0000
commit5891efd9ec89f8cd2b6b22b4594d4ee583ac6ea6 (patch)
treea48999feea6dc5873650bdaf61cbb4c6239f4e9f /fnet
parenta812eeaabeabae10e875500577bbf0f19c5802db (diff)
try to avoid valgrind complaints during shutdown
Diffstat (limited to 'fnet')
-rw-r--r--fnet/src/vespa/fnet/frt/supervisor.cpp4
-rw-r--r--fnet/src/vespa/fnet/frt/supervisor.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/fnet/src/vespa/fnet/frt/supervisor.cpp b/fnet/src/vespa/fnet/frt/supervisor.cpp
index 388d754ece4..d992567f776 100644
--- a/fnet/src/vespa/fnet/frt/supervisor.cpp
+++ b/fnet/src/vespa/fnet/frt/supervisor.cpp
@@ -430,4 +430,8 @@ StandaloneFRT::~StandaloneFRT()
_transport->ShutDown(true);
}
+void StandaloneFRT::shutdown() {
+ _transport->ShutDown(true);
+}
+
}
diff --git a/fnet/src/vespa/fnet/frt/supervisor.h b/fnet/src/vespa/fnet/frt/supervisor.h
index 1332bbe3ddb..2743cafae26 100644
--- a/fnet/src/vespa/fnet/frt/supervisor.h
+++ b/fnet/src/vespa/fnet/frt/supervisor.h
@@ -133,6 +133,7 @@ public:
explicit StandaloneFRT(std::shared_ptr<vespalib::CryptoEngine> crypto);
~StandaloneFRT();
FRT_Supervisor & supervisor() { return *_supervisor; }
+ void shutdown();
private:
std::unique_ptr<FastOS_ThreadPool> _threadPool;
std::unique_ptr<FNET_Transport> _transport;