diff options
author | cyy <cyyever@outlook.com> | 2019-01-11 22:13:12 +0800 |
---|---|---|
committer | James E. King III <jking@apache.org> | 2019-01-11 09:13:12 -0500 |
commit | ca8af9b48f9e62edc57c4a233c6377144214ef5a (patch) | |
tree | 1ad3761595642b938c384b459666b89be68821cf /contrib | |
parent | c9ac8d2953a4806cc93aa4ff2e700623ecad980c (diff) | |
download | thrift-ca8af9b48f9e62edc57c4a233c6377144214ef5a.tar.gz |
THRIFT-4730: remove pthread code and refactor, ending up with just ThreadFactory
Diffstat (limited to 'contrib')
-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)); |