formatting nits in Executor.h
authorJames Sedgwick <jsedgwick@fb.com>
Thu, 11 Dec 2014 15:41:44 +0000 (07:41 -0800)
committerDave Watson <davejwatson@fb.com>
Thu, 11 Dec 2014 16:02:18 +0000 (08:02 -0800)
Summary:
sorry this was bothering me
also remove extra include

Test Plan: OK

Reviewed By: davejwatson@fb.com

Subscribers: fugalh, folly-diffs@

FB internal diff: D1733723

Signature: t1:1733723:1418312030:088eb084f69e2bd7703724464b2f3e71abc2607a

folly/wangle/Executor.h

index b7c31fb7a04272a322f5dfe8a56713b1c2e150dc..bd720f60d3b985bf598339a037c3d036e31ba5d2 100644 (file)
 
 #pragma once
 
-#include <boost/noncopyable.hpp>
 #include <functional>
 
 namespace folly { namespace wangle {
-  typedef std::function<void()> Func;
-
-  /// An Executor accepts units of work with add(), which should be
-  /// threadsafe.
-  class Executor {
-   public:
-    virtual ~Executor() = default;
-
-    /// Enqueue a function to executed by this executor. This and all
-    /// variants must be threadsafe.
-    virtual void add(Func) = 0;
-
-    /// A convenience function for shared_ptr to legacy functors.
-    ///
-    /// Sometimes you have a functor that is move-only, and therefore can't be
-    /// converted to a std::function (e.g. std::packaged_task). In that case,
-    /// wrap it in a shared_ptr (or maybe folly::MoveWrapper) and use this.
-    template <class P>
-    void addPtr(P fn) {
-      this->add([fn]() mutable { (*fn)(); });
-    }
-  };
-}}
+
+typedef std::function<void()> Func;
+
+/// An Executor accepts units of work with add(), which should be
+/// threadsafe.
+class Executor {
+ public:
+  virtual ~Executor() = default;
+
+  /// Enqueue a function to executed by this executor. This and all
+  /// variants must be threadsafe.
+  virtual void add(Func) = 0;
+
+  /// A convenience function for shared_ptr to legacy functors.
+  ///
+  /// Sometimes you have a functor that is move-only, and therefore can't be
+  /// converted to a std::function (e.g. std::packaged_task). In that case,
+  /// wrap it in a shared_ptr (or maybe folly::MoveWrapper) and use this.
+  template <class P>
+  void addPtr(P fn) {
+    this->add([fn]() mutable { (*fn)(); });
+  }
+};
+
+}} // folly::wangle