diff options
Diffstat (limited to 'contrib/transport-sample/ThriftCommon.h')
-rw-r--r-- | contrib/transport-sample/ThriftCommon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/transport-sample/ThriftCommon.h b/contrib/transport-sample/ThriftCommon.h index e16d87ddd..078ad4474 100644 --- a/contrib/transport-sample/ThriftCommon.h +++ b/contrib/transport-sample/ThriftCommon.h @@ -25,7 +25,7 @@ // Required Includes //'server' side #includes #include <thrift/concurrency/ThreadManager.h> -#include <thrift/concurrency/PlatformThreadFactory.h> +#include <thrift/concurrency/ThreadFactory.h> #include <thrift/server/TThreadPoolServer.h> #include <thrift/server/TSimpleServer.h> //'client' side #includes @@ -87,7 +87,7 @@ namespace thriftcommon else { //Multi-threaded server boost::shared_ptr<ThreadManager> threadManager = ThreadManager::newSimpleThreadManager(NumThreads); - boost::shared_ptr<PlatformThreadFactory> threadFactory = boost::shared_ptr<PlatformThreadFactory>(new PlatformThreadFactory()); + boost::shared_ptr<ThreadFactory> threadFactory = boost::shared_ptr<ThreadFactory>(new ThreadFactory()); threadManager->threadFactory(threadFactory); threadManager->start(); server.reset(new TThreadPoolServer(processor, transport, tfactory, pfactory, threadManager)); |