Use loopKeepAlive() mechanism in FiberManager
[folly.git] / folly / fibers / FiberManagerInternal.h
index dc0c3e6c8352573b4de3a8b177a630b0ae0ff7e9..28c74db641d97178f58fab32cda8b6456a7414a3 100644 (file)
@@ -155,10 +155,13 @@ class FiberManager : public ::folly::Executor {
 
   /**
    * Keeps running ready tasks until the list of ready tasks is empty.
 
   /**
    * Keeps running ready tasks until the list of ready tasks is empty.
-   *
-   * @return True if there are any waiting tasks remaining.
    */
    */
-  bool loopUntilNoReady();
+  void loopUntilNoReady();
+
+  /**
+   * This should only be called by a LoopController.
+   */
+  void loopUntilNoReadyImpl();
 
   /**
    * @return true if there are outstanding tasks.
 
   /**
    * @return true if there are outstanding tasks.