From 579912e52f371c07583e09095a5b89bfe88e872a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 1 Oct 2014 20:39:50 +0200 Subject: lib/nfs/Glue: destruct the NfsManager in the I/O thread This allows eliminating the indirection code from the NfsConnection destructor. --- src/lib/nfs/Glue.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/nfs/Glue.cxx') diff --git a/src/lib/nfs/Glue.cxx b/src/lib/nfs/Glue.cxx index c89d463ca..6fc849609 100644 --- a/src/lib/nfs/Glue.cxx +++ b/src/lib/nfs/Glue.cxx @@ -21,6 +21,7 @@ #include "Glue.hxx" #include "Manager.hxx" #include "IOThread.hxx" +#include "event/Call.hxx" #include "util/Manual.hxx" static Manual nfs_glue; @@ -43,7 +44,7 @@ nfs_finish() if (--in_use > 0) return; - nfs_glue.Destruct(); + BlockingCall(io_thread_get(), [](){ nfs_glue.Destruct(); }); } NfsConnection & -- cgit v1.2.3