move MemoryMapping, Shell, ThreadId, ThreadName, and VersionCheck to system/
[folly.git] / folly / futures / InlineExecutor.cpp
index 75271f92fb1874e401ea3b2c6885c04a2a1beb4b..848e7f2653fc6135c868a5b5520282b27d423f56 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
+#include <folly/futures/InlineExecutor.h>
+
+#include <folly/Indestructible.h>
+
+namespace folly {
+
+InlineExecutor& InlineExecutor::instance() {
+  static auto instance = Indestructible<InlineExecutor>{};
+  return *instance;
+}
+
+} // namespace folly