From 5735be2cb53ba61171d300e7d69c565d78a887b0 Mon Sep 17 00:00:00 2001 From: Calvin Sun <675313675@qq.com> Date: Thu, 30 Apr 2015 14:59:26 +0800 Subject: [PATCH] Some spell errors fix and an website update. --- lib/cpp/src/thrift/concurrency/BoostThreadFactory.h | 3 +-- lib/cpp/src/thrift/concurrency/Thread.h | 2 +- lib/cpp/src/thrift/concurrency/ThreadManager.h | 4 ++-- lib/cpp/src/thrift/protocol/TProtocol.h | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/cpp/src/thrift/concurrency/BoostThreadFactory.h b/lib/cpp/src/thrift/concurrency/BoostThreadFactory.h index fc06e5657e2..e6d1a56deed 100644 --- a/lib/cpp/src/thrift/concurrency/BoostThreadFactory.h +++ b/lib/cpp/src/thrift/concurrency/BoostThreadFactory.h @@ -43,8 +43,7 @@ class BoostThreadFactory : public ThreadFactory { * to both is given up. * * Threads are created with the specified boost policy, priority, stack-size. A detachable thread - *is not - * joinable. + * is not joinable. * * By default threads are not joinable. */ diff --git a/lib/cpp/src/thrift/concurrency/Thread.h b/lib/cpp/src/thrift/concurrency/Thread.h index 1d9153fa53e..f5eb3a85ad7 100644 --- a/lib/cpp/src/thrift/concurrency/Thread.h +++ b/lib/cpp/src/thrift/concurrency/Thread.h @@ -55,7 +55,7 @@ class Runnable { /** * Gets the thread object that is hosting this runnable object - can return - * an empty boost::shared pointer if no references remain on thet thread object + * an empty boost::shared pointer if no references remain on that thread object */ virtual boost::shared_ptr thread() { return thread_.lock(); } diff --git a/lib/cpp/src/thrift/concurrency/ThreadManager.h b/lib/cpp/src/thrift/concurrency/ThreadManager.h index 7bb71d146f5..2112845da43 100644 --- a/lib/cpp/src/thrift/concurrency/ThreadManager.h +++ b/lib/cpp/src/thrift/concurrency/ThreadManager.h @@ -41,14 +41,14 @@ class ThreadManager; * * This class manages a pool of threads. It uses a ThreadFactory to create * threads. It never actually creates or destroys worker threads, rather - * It maintains statistics on number of idle threads, number of active threads, + * it maintains statistics on number of idle threads, number of active threads, * task backlog, and average wait and service times and informs the PoolPolicy * object bound to instances of this manager of interesting transitions. It is * then up the PoolPolicy object to decide if the thread pool size needs to be * adjusted and call this object addWorker and removeWorker methods to make * changes. * - * This design allows different policy implementations to used this code to + * This design allows different policy implementations to use this code to * handle basic worker thread management and worker task execution and focus on * policy issues. The simplest policy, StaticPolicy, does nothing other than * create a fixed number of threads. diff --git a/lib/cpp/src/thrift/protocol/TProtocol.h b/lib/cpp/src/thrift/protocol/TProtocol.h index 5d440431bc9..519b33902a3 100644 --- a/lib/cpp/src/thrift/protocol/TProtocol.h +++ b/lib/cpp/src/thrift/protocol/TProtocol.h @@ -39,7 +39,7 @@ // The most obvious implementation is to just cast a pointer, // but that doesn't work. // For a pretty in-depth explanation of the problem, see -// http://www.cellperformance.com/mike_acton/2006/06/ (...) +// http://cellperformance.beyond3d.com/articles/2006/06 (...) // understanding_strict_aliasing.html template static inline To bitwise_cast(From from) {