aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-07-17 15:30:33 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-07-17 15:30:33 -0700
commit29cb6dd21f138a6bdb38950db8474b0062355755 (patch)
tree5fe16e525bf92670ddf0c6dff70e775323988e0e /include
parentefccb3f5ce7cae89739d3a0474fcc0d6e2a5b12c (diff)
parent72a44178e92cc103507e2bdc1a52e709de83b767 (diff)
Merge pull request #2482 from vjpai/rename_schedule_callback
ThreadPoolInterface::ScheduleCallback --> ThreadPoolInterface::Add
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/fixed_size_thread_pool.h2
-rw-r--r--include/grpc++/thread_pool_interface.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/grpc++/fixed_size_thread_pool.h b/include/grpc++/fixed_size_thread_pool.h
index 9f0cbfbae9..bf67cce7b1 100644
--- a/include/grpc++/fixed_size_thread_pool.h
+++ b/include/grpc++/fixed_size_thread_pool.h
@@ -50,7 +50,7 @@ class FixedSizeThreadPool GRPC_FINAL : public ThreadPoolInterface {
explicit FixedSizeThreadPool(int num_threads);
~FixedSizeThreadPool();
- void ScheduleCallback(const std::function<void()>& callback) GRPC_OVERRIDE;
+ void Add(const std::function<void()>& callback) GRPC_OVERRIDE;
private:
grpc::mutex mu_;
diff --git a/include/grpc++/thread_pool_interface.h b/include/grpc++/thread_pool_interface.h
index ac4458d530..d080b31dcc 100644
--- a/include/grpc++/thread_pool_interface.h
+++ b/include/grpc++/thread_pool_interface.h
@@ -44,7 +44,7 @@ class ThreadPoolInterface {
virtual ~ThreadPoolInterface() {}
// Schedule the given callback for execution.
- virtual void ScheduleCallback(const std::function<void()>& callback) = 0;
+ virtual void Add(const std::function<void()>& callback) = 0;
};
ThreadPoolInterface* CreateDefaultThreadPool();