aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/client_sync.cc
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2015-04-29 10:40:26 -0700
committerGravatar vjpai <vpai@google.com>2015-04-29 10:40:26 -0700
commit07b2fe6f964fce0574d7593bc8347e60cac40a94 (patch)
tree3f2a4db23ecb4a651b8fbbef97b1f520c784e20a /test/cpp/qps/client_sync.cc
parentf894b1d26fd47dc48a8c38509bea14d88eabad42 (diff)
Move end_threads to subclass since some subclass-specific fields will still be
alive at this time
Diffstat (limited to 'test/cpp/qps/client_sync.cc')
-rw-r--r--test/cpp/qps/client_sync.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc
index 5dd64d0b13..0809eb5b6c 100644
--- a/test/cpp/qps/client_sync.cc
+++ b/test/cpp/qps/client_sync.cc
@@ -70,7 +70,7 @@ class SynchronousClient : public Client {
responses_.resize(num_threads_);
}
- virtual ~SynchronousClient() { EndThreads(); }
+ virtual ~SynchronousClient() {};
protected:
size_t num_threads_;
@@ -81,7 +81,7 @@ class SynchronousUnaryClient GRPC_FINAL : public SynchronousClient {
public:
SynchronousUnaryClient(const ClientConfig& config):
SynchronousClient(config) {StartThreads(num_threads_);}
- ~SynchronousUnaryClient() {}
+ ~SynchronousUnaryClient() {EndThreads();}
bool ThreadFunc(Histogram* histogram, size_t thread_idx) GRPC_OVERRIDE {
auto* stub = channels_[thread_idx % channels_.size()].get_stub();