logging: add new RateLimiter helper class
[folly.git] / folly / Executor.cpp
index c1ec002d038f267c060cff9bb6161fb3a6d22d1c..42d1f04a37a18f759d04a94be52a8c7c07e22daf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 
 #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()";
+}
 }