From: Andrii Grynenko Date: Fri, 10 Mar 2017 19:40:59 +0000 (-0800) Subject: Use VirtualEventBase in mcrouter X-Git-Tag: v2017.03.13.00~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b5b5c5486b4ca4d42bdca9638ccaa5c91a2720d7;p=folly.git Use VirtualEventBase in mcrouter Summary: This switches mcrouter to use VirtualEventBase as the unified way of managing its threads. This allows multiple mcrouters to be run on the same thread-pool, without having to keep separate shutdown logic. As an immediate win - this eliminates any special shutdown logic from tcc and standalone mcrouter. Reviewed By: jmswen Differential Revision: D4570982 fbshipit-source-id: 3974279005150e3e1db16230fde6b5951ae016b9 --- diff --git a/folly/fibers/EventBaseLoopController.h b/folly/fibers/EventBaseLoopController.h index f389a45e..ce97240b 100644 --- a/folly/fibers/EventBaseLoopController.h +++ b/folly/fibers/EventBaseLoopController.h @@ -114,6 +114,8 @@ class EventBaseLoopControllerT : public LoopController { }; using EventBaseLoopController = EventBaseLoopControllerT; +using VirtualEventBaseLoopController = + EventBaseLoopControllerT; } } // folly::fibers