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 /tutorial | |
parent | c9ac8d2953a4806cc93aa4ff2e700623ecad980c (diff) | |
download | thrift-ca8af9b48f9e62edc57c4a233c6377144214ef5a.tar.gz |
THRIFT-4730: remove pthread code and refactor, ending up with just ThreadFactory
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/cpp/CppServer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/cpp/CppServer.cpp b/tutorial/cpp/CppServer.cpp index f7379d536..3b5ce4012 100644 --- a/tutorial/cpp/CppServer.cpp +++ b/tutorial/cpp/CppServer.cpp @@ -18,7 +18,7 @@ */ #include <thrift/concurrency/ThreadManager.h> -#include <thrift/concurrency/PlatformThreadFactory.h> +#include <thrift/concurrency/ThreadFactory.h> #include <thrift/protocol/TBinaryProtocol.h> #include <thrift/server/TSimpleServer.h> #include <thrift/server/TThreadPoolServer.h> @@ -160,7 +160,7 @@ int main() { std::shared_ptr<ThreadManager> threadManager = ThreadManager::newSimpleThreadManager(workerCount); threadManager->threadFactory( - std::make_shared<PlatformThreadFactory>()); + std::make_shared<ThreadFactory>()); threadManager->start(); // This server allows "workerCount" connection at a time, and reuses threads |