diff options
author | Roger Meier <roger@apache.org> | 2011-10-02 10:51:45 +0000 |
---|---|---|
committer | Roger Meier <roger@apache.org> | 2011-10-02 10:51:45 +0000 |
commit | 3faaedf46b0c99096f0a18820782362886530e8e (patch) | |
tree | da42b357f44eeeaf8d41dfd005b8c8c6d2a2f288 /test/threads | |
parent | 3516e0e306c4ae124dba3ed8f997c8820bcd0864 (diff) | |
download | thrift-3faaedf46b0c99096f0a18820782362886530e8e.tar.gz |
THRIFT-1361 Optional replacement of pthread by boost::thread
Patch: alexandre parenteau
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1178176 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/threads')
-rw-r--r-- | test/threads/ThreadsClient.cpp | 6 | ||||
-rw-r--r-- | test/threads/ThreadsServer.cpp | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/threads/ThreadsClient.cpp b/test/threads/ThreadsClient.cpp index 85274a632..f5c076f2e 100644 --- a/test/threads/ThreadsClient.cpp +++ b/test/threads/ThreadsClient.cpp @@ -25,9 +25,9 @@ #include <server/TThreadPoolServer.h> #include <transport/TSocket.h> #include <transport/TTransportUtils.h> -#include <thrift/concurrency/Monitor.h> -#include <thrift/concurrency/ThreadManager.h> -#include <thrift/concurrency/PosixThreadFactory.h> +#include <concurrency/Monitor.h> +#include <concurrency/ThreadManager.h> +#include <concurrency/PlatformThreadFactory.h> using boost::shared_ptr; using namespace apache::thrift; diff --git a/test/threads/ThreadsServer.cpp b/test/threads/ThreadsServer.cpp index 8734ee893..8420c2f06 100644 --- a/test/threads/ThreadsServer.cpp +++ b/test/threads/ThreadsServer.cpp @@ -26,9 +26,9 @@ #include <server/TThreadedServer.h> #include <transport/TServerSocket.h> #include <transport/TTransportUtils.h> -#include <thrift/concurrency/Monitor.h> -#include <thrift/concurrency/ThreadManager.h> -#include <thrift/concurrency/PosixThreadFactory.h> +#include <concurrency/Monitor.h> +#include <concurrency/ThreadManager.h> +#include <concurrency/PlatformThreadFactory.h> using boost::shared_ptr; using namespace apache::thrift; @@ -111,8 +111,8 @@ int main(int argc, char **argv) { /* shared_ptr<ThreadManager> threadManager = ThreadManager::newSimpleThreadManager(10); - shared_ptr<PosixThreadFactory> threadFactory = - shared_ptr<PosixThreadFactory>(new PosixThreadFactory()); + shared_ptr<PlatformThreadFactory> threadFactory = + shared_ptr<PlatformThreadFactory>(new PlatformThreadFactory()); threadManager->threadFactory(threadFactory); threadManager->start(); |