Use Fiber locals for TAO Fiber-locals
[folly.git] / folly / experimental / fibers / Fiber.h
index e3a38d554fe2e82c0f12dd21cd471b3b4f827431..df9668d64e1665fa74ad8403b36db5bca725bf3c 100644 (file)
@@ -75,9 +75,6 @@ class Fiber {
   template <typename F, typename G>
   void setFunctionFinally(F&& func, G&& finally);
 
-  template <typename G>
-  void setReadyFunction(G&& func);
-
   static void fiberFuncHelper(intptr_t fiber);
   void fiberFunc();
 
@@ -101,8 +98,6 @@ class Fiber {
   FContext fcontext_;           /**< current task execution context */
   intptr_t data_;               /**< Used to keep some data with the Fiber */
   std::function<void()> func_;  /**< task function */
-  std::function<void()> readyFunc_; /**< function to be executed before jumping
-                                         to this fiber */
 
   /**
    * Points to next fiber in remote ready list