logging: fix compilation error on older C++ compilers
[folly.git] / folly / Executor.cpp
index 91f9884883fd431fcfee7c92c75b02dd53c63c95..44d1da4a321c1a194252e4488077f7bdf2cd473b 100644 (file)
 
 #include <stdexcept>
 
+#include <glog/logging.h>
+
 namespace folly {
 
 void Executor::addWithPriority(Func, int8_t /* priority */) {
   throw std::runtime_error(
       "addWithPriority() is not implemented for this Executor");
 }
+
+void Executor::keepAliveAcquire() {
+  LOG(FATAL) << __func__ << "() should not be called for folly::Executor types "
+             << "which do not override getKeepAliveToken()";
+}
+
+void Executor::keepAliveRelease() {
+  LOG(FATAL) << __func__ << "() should not be called for folly::Executor types "
+             << "which do not override getKeepAliveToken()";
 }
+} // namespace folly