Commit ecba6a15 authored by Andrew Krieger's avatar Andrew Krieger Committed by Facebook Github Bot

Allow forcing value for FOLLY_FUTURE_USING_FIBER in folly-config.h

Summary:
Let clients choose whether to use fibers or not, but default
to the same autodetected setting as prior logic.

Reviewed By: yfeldblum

Differential Revision: D5585605

fbshipit-source-id: 9a4bf9f9bc23b4e15601f30c40602f21798c9685
parent e804df26
...@@ -28,12 +28,14 @@ ...@@ -28,12 +28,14 @@
#include <folly/futures/Timekeeper.h> #include <folly/futures/Timekeeper.h>
#include <folly/futures/detail/Core.h> #include <folly/futures/detail/Core.h>
#ifndef FOLLY_FUTURE_USING_FIBER
#if FOLLY_MOBILE || defined(__APPLE__) #if FOLLY_MOBILE || defined(__APPLE__)
#define FOLLY_FUTURE_USING_FIBER 0 #define FOLLY_FUTURE_USING_FIBER 0
#else #else
#define FOLLY_FUTURE_USING_FIBER 1 #define FOLLY_FUTURE_USING_FIBER 1
#include <folly/fibers/Baton.h> #include <folly/fibers/Baton.h>
#endif #endif
#endif
namespace folly { namespace folly {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment