Skip to content
Snippets Groups Projects
Commit 07b2fe6f authored by vjpai's avatar vjpai
Browse files

Move end_threads to subclass since some subclass-specific fields will still be

alive at this time
parent f894b1d2
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment