C++ Thrift coding style changes
Summary: Make underscore for class members consistent
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664818 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/server/TThreadPoolServer.cc b/lib/cpp/src/server/TThreadPoolServer.cc
index 4285b05..43f7463 100644
--- a/lib/cpp/src/server/TThreadPoolServer.cc
+++ b/lib/cpp/src/server/TThreadPoolServer.cc
@@ -12,19 +12,15 @@
using namespace facebook::thrift::transport;
class TThreadPoolServer::Task: public Runnable {
-
- shared_ptr<TProcessor> _processor;
- shared_ptr<TTransport> _input;
- shared_ptr<TTransport> _output;
-
+
public:
Task(shared_ptr<TProcessor> processor,
shared_ptr<TTransport> input,
shared_ptr<TTransport> output) :
- _processor(processor),
- _input(input),
- _output(output) {
+ processor_(processor),
+ input_(input),
+ output_(output) {
}
~Task() {}
@@ -32,16 +28,22 @@
void run() {
while(true) {
try {
- _processor->process(_input, _output);
+ processor_->process(input_, output_);
} catch (TTransportException& ttx) {
break;
} catch(...) {
break;
}
}
- _input->close();
- _output->close();
+ input_->close();
+ output_->close();
}
+
+ private:
+ shared_ptr<TProcessor> processor_;
+ shared_ptr<TTransport> input_;
+ shared_ptr<TTransport> output_;
+
};
TThreadPoolServer::TThreadPoolServer(shared_ptr<TProcessor> processor,