aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2015-07-16 21:44:44 -0700
committerGravatar vjpai <vpai@google.com>2015-07-16 21:44:44 -0700
commit72a44178e92cc103507e2bdc1a52e709de83b767 (patch)
treeae469fd67a5ec288798e80e58e10bcc31a998895 /test/cpp
parent65ef0fffaecf8396cb93b3a76416d099f7b07438 (diff)
ThreadPoolInterface::ScheduleCallback --> ThreadPoolInterface::Add
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/server/fixed_size_thread_pool_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/server/fixed_size_thread_pool_test.cc b/test/cpp/server/fixed_size_thread_pool_test.cc
index d62f4e8132..442e974fc1 100644
--- a/test/cpp/server/fixed_size_thread_pool_test.cc
+++ b/test/cpp/server/fixed_size_thread_pool_test.cc
@@ -54,12 +54,12 @@ void Callback(std::mutex* mu, std::condition_variable* cv, bool* done) {
cv->notify_all();
}
-TEST_F(FixedSizeThreadPoolTest, ScheduleCallback) {
+TEST_F(FixedSizeThreadPoolTest, Add) {
std::mutex mu;
std::condition_variable cv;
bool done = false;
std::function<void()> callback = std::bind(Callback, &mu, &cv, &done);
- thread_pool_.ScheduleCallback(callback);
+ thread_pool_.Add(callback);
// Wait for the callback to finish.
std::unique_lock<std::mutex> lock(mu);