fix mem leak
[folly.git] / folly / io / async / EventBase.h
index 843ab464018bede18daeac0230f3721b7fcea2f8..9077b06cd34e3c082d1293a4794a148724018b3c 100644 (file)
@@ -725,6 +725,9 @@ bool runImmediatelyOrRunInEventBaseThreadAndWait(const Cob& fn);
 
   // Name of the thread running this EventBase
   std::string name_;
+
+  // allow runOnDestruction() to be called from any threads
+  std::mutex onDestructionCallbacksMutex_;
 };
 
 } // folly