THRIFT-2786 Cpp Tutorial: Make TThreadPoolServer / TThreadedServer a bit easier to use
Client: C++
Patch: Brian Brooks
diff --git a/tutorial/cpp/CppServer.cpp b/tutorial/cpp/CppServer.cpp
index 653caaa..f7a69e2 100644
--- a/tutorial/cpp/CppServer.cpp
+++ b/tutorial/cpp/CppServer.cpp
@@ -35,6 +35,7 @@
using namespace std;
using namespace apache::thrift;
+using namespace apache::thrift::concurrency;
using namespace apache::thrift::protocol;
using namespace apache::thrift::transport;
using namespace apache::thrift::server;
@@ -125,6 +126,8 @@
/**
* Or you could do one of these
+ const int workerCount = 4;
+
boost::shared_ptr<ThreadManager> threadManager =
ThreadManager::newSimpleThreadManager(workerCount);
boost::shared_ptr<PosixThreadFactory> threadFactory =