/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/// 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) {}