logging: add new RateLimiter helper class
[folly.git] / folly / Executor.cpp
index 91f9884883fd431fcfee7c92c75b02dd53c63c95..42d1f04a37a18f759d04a94be52a8c7c07e22daf 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::keepAliveRelease() {
+  LOG(FATAL) << "keepAliveRelease() should not be called for folly::Executors "
+             << "which do not implement getKeepAliveToken()";
+}
 }