summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorcyy <cyyever@outlook.com>2019-01-11 22:13:12 +0800
committerJames E. King III <jking@apache.org>2019-01-11 09:13:12 -0500
commitca8af9b48f9e62edc57c4a233c6377144214ef5a (patch)
tree1ad3761595642b938c384b459666b89be68821cf /contrib
parentc9ac8d2953a4806cc93aa4ff2e700623ecad980c (diff)
downloadthrift-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.h4
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));