/// threadsafe.
class Executor {
public:
- virtual ~Executor() = default;
+ // Workaround for a linkage problem with explicitly defaulted dtor t22914621
+ virtual ~Executor() {}
/// Enqueue a function to executed by this executor. This and all
/// variants must be threadsafe.
return executor_ != nullptr;
}
+ Executor* get() const {
+ return executor_.get();
+ }
+
private:
friend class Executor;
explicit KeepAlive(folly::Executor* executor) : executor_(executor) {}